<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml" lang="en">

<head>
  <link href='https://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css' /><title>currentOp &mdash; MongoDB Manual</title><link rel="shortcut icon" href="https://media.mongodb.org/favicon.ico" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="robots" content="index" />

  <meta name="release" content="4.2.5"/>
  <meta name="version" content="4.2"/>
  <meta name="DC.Source" content="https://github.com/mongodb/docs/blob/v4.2/source/reference/command/currentOp.txt"/>
  <meta property="og:image" content="http://s3.amazonaws.com/info-mongodb-com/_com_assets/cms/mongodb-for-giant-ideas-bbab5c3cf8.png">
  <meta property="og:image:secure_url" content="https://webassets.mongodb.com/_com_assets/cms/mongodb-for-giant-ideas-bbab5c3cf8.png">
      <link rel="canonical" href="https://docs.mongodb.com/manual/reference/command/currentOp" />
  
   <link rel="stylesheet" href="../../_static/mongodb-docs.css" type="text/css" />
   <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
   <link rel="stylesheet" href="../../_static/css/navbar.min.css" type="text/css" />
    
    <script type="text/javascript" src="../../_static/lib/jquery.min.js"></script>
    <script type="text/javascript" src="../../_static/underscore.js"></script>
    <script type="text/javascript" src="../../_static/lib/bootstrap.js"></script>
    <script type="text/javascript" src="../../_static/lib/jquery.cookie.js"></script>
    <script type="text/javascript" src="../../_static/controller.js"></script>
      <link rel="search" type="application/opensearchdescription+xml" href="https://docs.mongodb.com/osd.xml" title="MongoDB Help"/>
<link rel="author" title="About these documents" href="../../about.html" />
<!-- <link rel="index" title="Index" href="../../genindex.html" /> -->
<link rel="search" title="Search" href="../../search.html" />
<link rel="top" title="MongoDB Manual" href="../../index.html" />
<link rel="up" title="Administration Commands" href="nav-administration.html" />
<link rel="next" title="drop" href="drop.html" />
<link rel="prev" title="createIndexes" href="createIndexes.html" /><script type='text/javascript'>
   var gptadslots=[];
   var googletag = googletag || {};
   googletag.cmd = googletag.cmd || [];
   (function(){ var gads = document.createElement('script');
      gads.async = true; gads.type = 'text/javascript';
      var useSSL = 'https:' == document.location.protocol;
      gads.src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js';
      var node = document.getElementsByTagName('script')[0];
      node.parentNode.insertBefore(gads, node);
   })();
</script>

<script type="text/javascript">
   googletag.cmd.push(function() {

      var pathname = location.href;
      
      if ( (pathname.indexOf("auth") >= 0) || (pathname.indexOf("security") >= 0) ) {
         gptadslots[1]= googletag.defineSlot('/40039723/docs.mongodb.org/security', [[160,600],[243,202],[293,244]],'mongodb-docs-1').addService(googletag.pubads());
      } else if ( (pathname.indexOf("crud") >= 0) ||  (pathname.indexOf("query") >= 0) || (pathname.indexOf("insert") >= 0) || (pathname.indexOf("update") >= 0) || (pathname.indexOf("remove") >= 0) || (pathname.indexOf("delete") >= 0) || (pathname.indexOf("aggregation") >= 0) ) {
         gptadslots[1]= googletag.defineSlot('/40039723/docs.mongodb.org/crud', [[160,600],[243,202],[293,244]],'mongodb-docs-1').addService(googletag.pubads());
      } else if (pathname.indexOf("shard") >= 0) {
         gptadslots[1]= googletag.defineSlot('/40039723/docs.mongodb.org/sharding', [[160,600],[243,202],[293,244]],'mongodb-docs-1').addService(googletag.pubads());
      } else if (pathname.indexOf("replica") >= 0) {
         gptadslots[1]= googletag.defineSlot('/40039723/docs.mongodb.org/replication', [[160,600],[243,202],[293,244]],'mongodb-docs-1').addService(googletag.pubads());
      } else if (pathname.indexOf("model") >= 0) {
         gptadslots[1]= googletag.defineSlot('/40039723/docs.mongodb.org/data-modeling', [[160,600],[243,202],[293,244]],'mongodb-docs-1').addService(googletag.pubads());
      } else if (pathname.indexOf("administration") >= 0) {
         gptadslots[1]= googletag.defineSlot('/40039723/docs.mongodb.org/support', [[160,600],[243,202],[293,244]],'mongodb-docs-1').addService(googletag.pubads());
      } else if (pathname.indexOf("install-mongodb-on-windows") >= 0) {
         gptadslots[1]= googletag.defineSlot('/40039723/docs.mongodb.org/install-mongodb-on-windows', [160, 600], 'mongodb-docs-1').addService(googletag.pubads());
      } else if (pathname.indexOf("tutorial/getting-started") >= 0) {
         gptadslots[1]= googletag.defineSlot('/40039723/docs.mongodb.org/docs_server_gettingstarted', [160, 600], 'mongodb-docs-1').addService(googletag.pubads());
      } else {
         //Adslot 1 declaration
         gptadslots[1]= googletag.defineSlot('/40039723/docs.mongodb.org', [[160,600],[243,202],[293,244]],'mongodb-docs-1').addService(googletag.pubads());
      }
      googletag.pubads().enableSingleRequest();
      googletag.pubads().enableAsyncRendering();
      googletag.enableServices();
   });
</script></head>
<body data-project="manual" data-project-title="MongoDB Manual" data-branch="v4.2" data-enable-marian=1>
  <!-- Google Tag Manager -->
  <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-JQHP"
                    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push(
     {'gtm.start': new Date().getTime(),event:'gtm.js'}
   );var f=d.getElementsByTagName(s)[0],
   j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
   '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
   })(window,document,'script','dataLayer','GTM-JQHP');</script>
  <!-- End Google Tag Manager -->
<div id="navbar" data-navprops='{"links": [{"url": "https://docs.mongodb.com/manual/","text": "Server","active": true},{"url": "https://docs.mongodb.com/ecosystem/drivers/","text": "Drivers"},{"url": "https://docs.mongodb.com/cloud/","text": "Cloud"},{"url": "https://docs.mongodb.com/tools/","text": "Tools"},{"url": "https://docs.mongodb.com/guides/","text": "Guides"}]}'></div>
      <script>
        window.googleSearchCx = "017213726194841070573:WMX6838984"
	window.googleSearchPlaceholder = "Search Documentation"
        window.googleSearchResultsUrl = "http://docs.mongodb.com/manual/search/"
      </script>
    <script src="../../_static/navbar.min.js"></script>
  

  <div class="content" >

   <div id="left-column">
         <aside id="sidebar" class="sidebar">
             
  <div class="sphinxsidebar" id="sphinxsidebar">
    <div id="sphinxsidebarwrapper" class="sphinxsidebarwrapper"><a href="javascript:void(0)" class="closeNav" id="closeNav">Close &times;</a>


<h3>
  <a class="index-link" href="../../index.html">MongoDB Manual</a>
</h3>


    <div class="btn-group version-sidebar">
      <button type="button" class="version-button dropdown-toggle" data-toggle="dropdown">
        
        
        Version 4.2 (current)<span class="caret"></span>
      </button>
      <ul class="dropdown-menu" role="menu">
        
          
          <li>
          
            <a class="version-selector" href="#" data-path="master">
              
              Version 4.4 (upcoming)
            </a>
          </li>
        
          
          <li class="active">
          
            <a href="#" data-path="manual">
              
              Version 4.2 (current)
            </a>
          </li>
        
          
          <li>
          
            <a class="version-selector" href="#" data-path="v4.0">
              
              Version 4.0
            </a>
          </li>
        
          
          <li>
          
            <a class="version-selector" href="#" data-path="v3.6">
              
              Version 3.6
            </a>
          </li>
        
          
          <li>
          
            <a class="version-selector" href="#" data-path="v3.4">
              
              Version 3.4
            </a>
          </li>
        
          
          <li>
          
            <a class="version-selector" href="#" data-path="v3.2">
              
              Version 3.2
            </a>
          </li>
        
          
          <li>
          
            <a class="version-selector" href="#" data-path="v3.0">
              
              Version 3.0
            </a>
          </li>
        
          
          <li>
          
            <a class="version-selector" href="#" data-path="v2.6">
              
              Version 2.6
            </a>
          </li>
        
          
          <li>
          
            <a class="version-selector" href="#" data-path="v2.4">
              
              Version 2.4
            </a>
          </li>
        
          
          <li>
          
            <a class="version-selector" href="#" data-path="v2.2">
              
              Version 2.2
            </a>
          </li>
        
      </ul>
    </div>


<ul class="current"><li class="toctree-l1"><a class="reference internal" href="../../introduction.html">Introduction</a><ul><li class="toctree-l2"><a class="reference internal" href="../../tutorial/getting-started.html">Getting Started</a></li><li class="toctree-l2"><a class="reference external" href="https://docs.atlas.mongodb.com/getting-started/">Create an Atlas Free Tier Cluster</a></li><li class="toctree-l2"><a class="reference internal" href="../../core/databases-and-collections.html">Databases and Collections</a><ul><li class="toctree-l3"><a class="reference internal" href="../../core/views.html">Views</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/materialized-views.html">On-Demand Materialized Views</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/capped-collections.html">Capped Collections</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/document.html">Documents</a></li><li class="toctree-l2"><a class="reference internal" href="../bson-types.html">BSON Types</a><ul><li class="toctree-l3"><a class="reference internal" href="../bson-type-comparison-order.html">Comparison/Sort Order</a></li><li class="toctree-l3"><a class="reference internal" href="../mongodb-extended-json.html">MongoDB Extended JSON (v2)</a></li><li class="toctree-l3"><a class="reference internal" href="../mongodb-extended-json-v1.html">MongoDB Extended JSON (v1)</a></li></ul></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../../installation.html">Installation</a><ul><li class="toctree-l2"><a class="reference internal" href="../../administration/install-community.html">Install MongoDB Community Edition</a><ul><li class="toctree-l3"><a class="reference internal" href="../../administration/install-on-linux.html">Install on Linux</a><ul><li class="toctree-l4"><a class="reference internal" href="../../tutorial/install-mongodb-on-red-hat.html">Install on Red Hat</a><ul><li class="toctree-l5"><a class="reference internal" href="../../tutorial/install-mongodb-on-red-hat-tarball.html">Install using .tgz Tarball</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/install-mongodb-on-ubuntu.html">Install on Ubuntu</a><ul><li class="toctree-l5"><a class="reference internal" href="../../tutorial/install-mongodb-on-ubuntu-tarball.html">Install using .tgz Tarball</a></li><li class="toctree-l5"><a class="reference internal" href="../installation-ubuntu-community-troubleshooting.html">Troubleshoot Ubuntu Installation</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/install-mongodb-on-debian.html">Install on Debian</a><ul><li class="toctree-l5"><a class="reference internal" href="../../tutorial/install-mongodb-on-debian-tarball.html">Install using .tgz Tarball</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/install-mongodb-on-suse.html">Install on SUSE</a><ul><li class="toctree-l5"><a class="reference internal" href="../../tutorial/install-mongodb-on-suse-tarball.html">Install using .tgz Tarball</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/install-mongodb-on-amazon.html">Install on Amazon</a><ul><li class="toctree-l5"><a class="reference internal" href="../../tutorial/install-mongodb-on-amazon-tarball.html">Install using .tgz Tarball</a></li></ul></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/install-mongodb-on-os-x.html">Install on macOS</a><ul><li class="toctree-l4"><a class="reference internal" href="../../tutorial/install-mongodb-on-os-x-tarball.html">Install using .tgz Tarball</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/install-mongodb-on-windows.html">Install on Windows</a><ul><li class="toctree-l4"><a class="reference internal" href="../../tutorial/install-mongodb-on-windows-unattended.html">Install using msiexec.exe</a></li></ul></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../administration/install-enterprise.html">Install MongoDB Enterprise</a><ul><li class="toctree-l3"><a class="reference internal" href="../../administration/install-enterprise-linux.html">Install on Linux</a><ul><li class="toctree-l4"><a class="reference internal" href="../../tutorial/install-mongodb-enterprise-on-red-hat.html">Install on Red Hat</a><ul><li class="toctree-l5"><a class="reference internal" href="../../tutorial/install-mongodb-enterprise-on-red-hat-tarball.html">Install using .tgz Tarball</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/install-mongodb-enterprise-on-ubuntu.html">Install on Ubuntu</a><ul><li class="toctree-l5"><a class="reference internal" href="../../tutorial/install-mongodb-enterprise-on-ubuntu-tarball.html">Install using .tgz Tarball</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/install-mongodb-enterprise-on-debian.html">Install on Debian</a><ul><li class="toctree-l5"><a class="reference internal" href="../../tutorial/install-mongodb-enterprise-on-debian-tarball.html">Install using .tgz Tarball</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/install-mongodb-enterprise-on-suse.html">Install on SUSE</a><ul><li class="toctree-l5"><a class="reference internal" href="../../tutorial/install-mongodb-enterprise-on-suse-tarball.html">Install using .tgz Tarball</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/install-mongodb-enterprise-on-amazon.html">Install on Amazon</a><ul><li class="toctree-l5"><a class="reference internal" href="../../tutorial/install-mongodb-enterprise-on-amazon-tarball.html">Install using .tgz Tarball</a></li></ul></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/install-mongodb-enterprise-on-os-x.html">Install on macOS</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/install-mongodb-enterprise-on-windows.html">Install on Windows</a><ul><li class="toctree-l4"><a class="reference internal" href="../../tutorial/install-mongodb-enterprise-on-windows-unattended.html">Install using msiexec.exe</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/install-mongodb-enterprise-with-docker.html">Install with Docker</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../administration/upgrade-community-to-enterprise.html">Upgrade MongoDB Community to MongoDB Enterprise</a><ul><li class="toctree-l3"><a class="reference internal" href="../../tutorial/upgrade-to-enterprise-standalone.html">Upgrade to MongoDB Enterprise (Standalone)</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/upgrade-to-enterprise-replica-set.html">Upgrade to MongoDB Enterprise (Replica Set)</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/upgrade-to-enterprise-sharded-cluster.html">Upgrade to MongoDB Enterprise (Sharded Cluster)</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../tutorial/verify-mongodb-packages.html">Verify Integrity of MongoDB Packages</a></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../../mongo.html">The <code class="docutils literal"><span class="pre">mongo</span></code> Shell</a><ul><li class="toctree-l2"><a class="reference internal" href="../../tutorial/configure-mongo-shell.html">Configure the <code class="docutils literal"><span class="pre">mongo</span></code> Shell</a></li><li class="toctree-l2"><a class="reference internal" href="../../tutorial/access-mongo-shell-help.html">Access the <code class="docutils literal"><span class="pre">mongo</span></code> Shell Help</a></li><li class="toctree-l2"><a class="reference internal" href="../../tutorial/write-scripts-for-the-mongo-shell.html">Write Scripts for the <code class="docutils literal"><span class="pre">mongo</span></code> Shell</a></li><li class="toctree-l2"><a class="reference internal" href="../../core/shell-types.html">Data Types in the <code class="docutils literal"><span class="pre">mongo</span></code> Shell</a></li><li class="toctree-l2"><a class="reference internal" href="../mongo-shell.html"><code class="docutils literal"><span class="pre">mongo</span></code> Shell Quick Reference</a></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../../crud.html">MongoDB CRUD Operations</a><ul><li class="toctree-l2"><a class="reference internal" href="../../tutorial/insert-documents.html">Insert Documents</a><ul><li class="toctree-l3"><a class="reference internal" href="../insert-methods.html">Insert Methods</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../tutorial/query-documents.html">Query Documents</a><ul><li class="toctree-l3"><a class="reference internal" href="../../tutorial/query-embedded-documents.html">Query on Embedded/Nested Documents</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/query-arrays.html">Query an Array</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/query-array-of-documents.html">Query an Array of Embedded Documents</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/project-fields-from-query-results.html">Project Fields to Return from Query</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/query-for-null-fields.html">Query for Null or Missing Fields</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/iterate-a-cursor.html">Iterate a Cursor in the <code class="docutils literal"><span class="pre">mongo</span></code> Shell</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../tutorial/update-documents.html">Update Documents</a><ul><li class="toctree-l3"><a class="reference internal" href="../../tutorial/update-documents-with-aggregation-pipeline.html">Updates with Aggregation Pipeline</a></li><li class="toctree-l3"><a class="reference internal" href="../update-methods.html">Update Methods</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../tutorial/remove-documents.html">Delete Documents</a><ul><li class="toctree-l3"><a class="reference internal" href="../delete-methods.html">Delete Methods</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/bulk-write-operations.html">Bulk Write Operations</a></li><li class="toctree-l2"><a class="reference internal" href="../../core/retryable-writes.html">Retryable Writes</a></li><li class="toctree-l2"><a class="reference internal" href="../sql-comparison.html">SQL to MongoDB Mapping Chart</a></li><li class="toctree-l2"><a class="reference internal" href="../../text-search.html">Text Search</a><ul><li class="toctree-l3"><a class="reference internal" href="../../core/link-text-indexes.html">Text Indexes</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/text-search-operators.html">Text Search Operators</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/text-search-in-aggregation.html">Text Search in the Aggregation Pipeline</a></li><li class="toctree-l3"><a class="reference internal" href="../text-search-languages.html">Text Search Languages</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../geospatial-queries.html">Geospatial Queries</a><ul><li class="toctree-l3"><a class="reference internal" href="../../tutorial/geospatial-tutorial.html">Find Restaurants with Geospatial Queries</a></li><li class="toctree-l3"><a class="reference internal" href="../geojson.html">GeoJSON Objects</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../read-concern.html">Read Isolation (Read Concern)</a><ul><li class="toctree-l3"><a class="reference internal" href="../read-concern-local.html">Read Concern <code class="docutils literal"><span class="pre">&quot;local&quot;</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="../read-concern-available.html">Read Concern <code class="docutils literal"><span class="pre">&quot;available&quot;</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="../read-concern-majority.html">Read Concern <code class="docutils literal"><span class="pre">&quot;majority&quot;</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="../read-concern-linearizable.html">Read Concern <code class="docutils literal"><span class="pre">&quot;linearizable&quot;</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="../read-concern-snapshot.html">Read Concern <code class="docutils literal"><span class="pre">&quot;snapshot&quot;</span></code></a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../write-concern.html">Write Acknowledgement (Write Concern)</a></li><li class="toctree-l2"><a class="reference internal" href="../../core/crud.html">MongoDB CRUD Concepts</a><ul><li class="toctree-l3"><a class="reference internal" href="../../core/write-operations-atomicity.html">Atomicity and Transactions</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/read-isolation-consistency-recency.html">Read Isolation, Consistency, and Recency</a><ul><li class="toctree-l4"><a class="reference internal" href="../../core/causal-consistency-read-write-concerns.html">Causal Consistency and Read and Write Concerns</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../../core/distributed-queries.html">Distributed Queries</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/perform-findAndModify-linearizable-reads.html">Linearizable Reads via <code class="docutils literal"><span class="pre">findAndModify</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="../../core/query-plans.html">Query Plans</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/query-optimization.html">Query Optimization</a><ul><li class="toctree-l4"><a class="reference internal" href="../../tutorial/evaluate-operation-performance.html">Evaluate Performance of Current Operations</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/optimize-query-performance-with-indexes-and-projections.html">Optimize Query Performance</a></li><li class="toctree-l4"><a class="reference internal" href="../../core/write-performance.html">Write Operation Performance</a></li><li class="toctree-l4"><a class="reference internal" href="../explain-results.html">Explain Results</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/analyze-query-plan.html">Analyze Query Performance</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/tailable-cursors.html">Tailable Cursors</a></li></ul></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../../aggregation.html">Aggregation</a><ul><li class="toctree-l2"><a class="reference internal" href="../../core/aggregation-pipeline.html">Aggregation Pipeline</a><ul><li class="toctree-l3"><a class="reference internal" href="../../core/aggregation-pipeline-optimization.html">Aggregation Pipeline Optimization</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/aggregation-pipeline-limits.html">Aggregation Pipeline Limits</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/aggregation-pipeline-sharded-collections.html">Aggregation Pipeline and Sharded Collections</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/aggregation-zip-code-data-set.html">Example with ZIP Code Data</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/aggregation-with-user-preference-data.html">Example with User Preference Data</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/map-reduce.html">Map-Reduce</a><ul><li class="toctree-l3"><a class="reference internal" href="../../core/map-reduce-sharded-collections.html">Map-Reduce and Sharded Collections</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/map-reduce-concurrency.html">Map-Reduce Concurrency</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/map-reduce-examples.html">Map-Reduce Examples</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/perform-incremental-map-reduce.html">Perform Incremental Map-Reduce</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/troubleshoot-map-function.html">Troubleshoot the Map Function</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/troubleshoot-reduce-function.html">Troubleshoot the Reduce Function</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../aggregation.html">Aggregation Reference</a><ul><li class="toctree-l3"><a class="reference internal" href="../../meta/aggregation-quick-reference.html">Aggregation Pipeline Quick Reference</a></li><li class="toctree-l3"><a class="reference internal" href="../operator/aggregation/interface.html">Aggregation Commands</a></li><li class="toctree-l3"><a class="reference internal" href="../aggregation-commands-comparison.html">Aggregation Commands Comparison</a></li><li class="toctree-l3"><a class="reference internal" href="../aggregation-variables.html">Variables in Aggregation Expressions</a></li><li class="toctree-l3"><a class="reference internal" href="../sql-aggregation-comparison.html">SQL to Aggregation Mapping Chart</a></li></ul></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../../data-modeling.html">Data Models</a><ul><li class="toctree-l2"><a class="reference internal" href="../../core/data-modeling-introduction.html">Data Modeling Introduction</a></li><li class="toctree-l2"><a class="reference internal" href="../../core/schema-validation.html">Schema Validation</a></li><li class="toctree-l2"><a class="reference internal" href="../../core/data-models.html">Data Modeling Concepts</a><ul><li class="toctree-l3"><a class="reference internal" href="../../core/data-model-design.html">Data Model Design</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/data-model-operations.html">Operational Factors and Data Models</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../applications/data-models.html">Data Model Examples and Patterns</a><ul><li class="toctree-l3"><a class="reference internal" href="../../applications/data-models-relationships.html">Model Relationships Between Documents</a><ul><li class="toctree-l4"><a class="reference internal" href="../../tutorial/model-embedded-one-to-one-relationships-between-documents.html">Model One-to-One Relationships with Embedded Documents</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/model-embedded-one-to-many-relationships-between-documents.html">Model One-to-Many Relationships with Embedded Documents</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/model-referenced-one-to-many-relationships-between-documents.html">Model One-to-Many Relationships with Document References</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../../applications/data-models-tree-structures.html">Model Tree Structures</a><ul><li class="toctree-l4"><a class="reference internal" href="../../tutorial/model-tree-structures-with-parent-references.html">Model Tree Structures with Parent References</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/model-tree-structures-with-child-references.html">Model Tree Structures with Child References</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/model-tree-structures-with-ancestors-array.html">Model Tree Structures with an Array of Ancestors</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/model-tree-structures-with-materialized-paths.html">Model Tree Structures with Materialized Paths</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/model-tree-structures-with-nested-sets.html">Model Tree Structures with Nested Sets</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../../applications/data-models-applications.html">Model Specific Application Contexts</a><ul><li class="toctree-l4"><a class="reference internal" href="../../tutorial/model-data-for-atomic-operations.html">Model Data for Atomic Operations</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/model-data-for-keyword-search.html">Model Data to Support Keyword Search</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/model-data-for-schema-versioning.html">Model Data for Schema Versioning</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/model-monetary-data.html">Model Monetary Data</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/model-time-data.html">Model Time Data</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/model-computed-data.html">Model Computed Data</a></li></ul></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../data-models.html">Data Model Reference</a><ul><li class="toctree-l3"><a class="reference internal" href="../database-references.html">Database References</a></li></ul></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../../core/transactions.html">Transactions</a><ul><li class="toctree-l2"><a class="reference internal" href="../../core/transactions-in-applications.html">Drivers API</a></li><li class="toctree-l2"><a class="reference internal" href="../../core/transactions-production-consideration.html">Production Considerations</a></li><li class="toctree-l2"><a class="reference internal" href="../../core/transactions-sharded-clusters.html">Production Considerations (Sharded Clusters)</a></li><li class="toctree-l2"><a class="reference internal" href="../../core/transactions-operations.html">Transactions and Operations</a></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../../indexes.html">Indexes</a><ul><li class="toctree-l2"><a class="reference internal" href="../../core/index-single.html">Single Field Indexes</a></li><li class="toctree-l2"><a class="reference internal" href="../../core/index-compound.html">Compound Indexes</a></li><li class="toctree-l2"><a class="reference internal" href="../../core/index-multikey.html">Multikey Indexes</a><ul><li class="toctree-l3"><a class="reference internal" href="../../core/multikey-index-bounds.html">Multikey Index Bounds</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/index-text.html">Text Indexes</a><ul><li class="toctree-l3"><a class="reference internal" href="../../tutorial/specify-language-for-text-index.html">Specify a Language for Text Index</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/avoid-text-index-name-limit.html">Specify Name for <code class="docutils literal"><span class="pre">text</span></code> Index</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/control-results-of-text-search.html">Control Search Results with Weights</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/limit-number-of-items-scanned-for-text-search.html">Limit the Number of Entries Scanned</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/index-wildcard.html">Wildcard Indexes</a><ul><li class="toctree-l3"><a class="reference internal" href="../index-wildcard-restrictions.html">Wildcard Index Restrictions</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/2dsphere.html"><code class="docutils literal"><span class="pre">2dsphere</span></code> Indexes</a><ul><li class="toctree-l3"><a class="reference internal" href="../../tutorial/query-a-2dsphere-index.html">Query a <code class="docutils literal"><span class="pre">2dsphere</span></code> Index</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/2d.html"><code class="docutils literal"><span class="pre">2d</span></code> Indexes</a><ul><li class="toctree-l3"><a class="reference internal" href="../../tutorial/build-a-2d-index.html">Create a <code class="docutils literal"><span class="pre">2d</span></code> Index</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/query-a-2d-index.html">Query a <code class="docutils literal"><span class="pre">2d</span></code> Index</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/geospatial-indexes.html"><code class="docutils literal"><span class="pre">2d</span></code> Index Internals</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/calculate-distances-using-spherical-geometry-with-2d-geospatial-indexes.html">Calculate Distance Using Spherical Geometry</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/geohaystack.html"><code class="docutils literal"><span class="pre">geoHaystack</span></code> Indexes</a><ul><li class="toctree-l3"><a class="reference internal" href="../../tutorial/build-a-geohaystack-index.html">Create a Haystack Index</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/query-a-geohaystack-index.html">Query a Haystack Index</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/index-hashed.html">Hashed Indexes</a></li><li class="toctree-l2"><a class="reference internal" href="../../core/index-properties.html">Index Properties</a><ul><li class="toctree-l3"><a class="reference internal" href="../../core/index-ttl.html">TTL Indexes</a><ul><li class="toctree-l4"><a class="reference internal" href="../../tutorial/expire-data.html">Expire Data from Collections by Setting TTL</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../../core/index-unique.html">Unique Indexes</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/index-partial.html">Partial Indexes</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/index-case-insensitive.html">Case Insensitive Indexes</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/index-sparse.html">Sparse Indexes</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/index-creation.html">Index Builds on Populated Collections</a><ul><li class="toctree-l3"><a class="reference internal" href="../../tutorial/build-indexes-on-replica-sets.html">Build Indexes on Replica Sets</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/build-indexes-on-sharded-clusters.html">Build Indexes on Sharded Clusters</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/index-intersection.html">Index Intersection</a></li><li class="toctree-l2"><a class="reference internal" href="../../tutorial/manage-indexes.html">Manage Indexes</a></li><li class="toctree-l2"><a class="reference internal" href="../../tutorial/measure-index-use.html">Measure Index Use</a></li><li class="toctree-l2"><a class="reference internal" href="../../applications/indexes.html">Indexing Strategies</a><ul><li class="toctree-l3"><a class="reference internal" href="../../tutorial/create-indexes-to-support-queries.html">Create Indexes to Support Your Queries</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/sort-results-with-indexes.html">Use Indexes to Sort Query Results</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/ensure-indexes-fit-ram.html">Ensure Indexes Fit in RAM</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/create-queries-that-ensure-selectivity.html">Create Queries that Ensure Selectivity</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../indexes.html">Indexing Reference</a></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../../security.html">Security</a><ul><li class="toctree-l2"><a class="reference internal" href="../../administration/security-checklist.html">Security Checklist</a></li><li class="toctree-l2"><a class="reference internal" href="../../tutorial/enable-authentication.html">Enable Access Control</a></li><li class="toctree-l2"><a class="reference internal" href="../../core/authentication.html">Authentication</a><ul><li class="toctree-l3"><a class="reference internal" href="../../core/security-users.html">Users</a><ul><li class="toctree-l4"><a class="reference internal" href="../../tutorial/create-users.html">Add Users</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../../core/authentication-mechanisms.html">Authentication Mechanisms</a><ul><li class="toctree-l4"><a class="reference internal" href="../../core/security-scram.html">SCRAM</a></li><li class="toctree-l4"><a class="reference internal" href="../../core/security-x.509.html">x.509</a><ul><li class="toctree-l5"><a class="reference internal" href="../../tutorial/configure-x509-client-authentication.html">Use x.509 Certificates to Authenticate Clients</a></li></ul></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../../core/authentication-mechanisms-enterprise.html">Enterprise Authentication Mechanisms</a><ul><li class="toctree-l4"><a class="reference internal" href="../../core/kerberos.html">Kerberos Authentication</a><ul><li class="toctree-l5"><a class="reference internal" href="../../tutorial/control-access-to-mongodb-with-kerberos-authentication.html">Configure MongoDB with Kerberos Authentication on Linux</a></li><li class="toctree-l5"><a class="reference internal" href="../../tutorial/control-access-to-mongodb-windows-with-kerberos-authentication.html">Configure MongoDB with Kerberos Authentication on Windows</a></li><li class="toctree-l5"><a class="reference internal" href="../../tutorial/troubleshoot-kerberos.html">Troubleshoot Kerberos Authentication</a></li><li class="toctree-l5"><a class="reference internal" href="../../tutorial/kerberos-auth-activedirectory-authz.html">Configure MongoDB with Kerberos Authentication and Active Directory Authorization</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../../core/security-ldap.html">LDAP Proxy Authentication</a><ul><li class="toctree-l5"><a class="reference internal" href="../../tutorial/configure-ldap-sasl-activedirectory.html">Authenticate Using SASL and LDAP with ActiveDirectory</a></li><li class="toctree-l5"><a class="reference internal" href="../../tutorial/configure-ldap-sasl-openldap.html">Authenticate Using SASL and LDAP with OpenLDAP</a></li><li class="toctree-l5"><a class="reference internal" href="../../tutorial/authenticate-nativeldap-activedirectory.html">Authenticate and Authorize Users Using Active Directory via Native LDAP</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../../core/security-ldap-external.html">LDAP Authorization</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../../core/security-internal-authentication.html">Internal/Membership Authentication</a><ul><li class="toctree-l4"><a class="reference internal" href="../../tutorial/deploy-replica-set-with-keyfile-access-control.html">Deploy Replica Set With Keyfile Authentication</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/enforce-keyfile-access-control-in-existing-replica-set.html">Update Replica Set to Keyfile Authentication</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/enforce-keyfile-access-control-in-existing-replica-set-without-downtime.html">Update Replica Set to Keyfile Authentication (No Downtime)</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/rotate-key-replica-set.html">Rotate Keys for Replica Sets</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/deploy-sharded-cluster-with-keyfile-access-control.html">Deploy Sharded Cluster with Keyfile Authentication</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/enforce-keyfile-access-control-in-existing-sharded-cluster.html">Update Sharded Cluster to Keyfile Authentication</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/enforce-keyfile-access-control-in-existing-sharded-cluster-no-downtime.html">Update Sharded Cluster to Keyfile Authentication (No Downtime)</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/rotate-key-sharded-cluster.html">Rotate Keys for Sharded Clusters</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/configure-x509-member-authentication.html">Use x.509 Certificate for Membership Authentication</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/upgrade-keyfile-to-x509.html">Upgrade from Keyfile Authentication to x.509 Authentication</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/rotate-x509-membership-certificates.html">Rolling Update of x.509 Cluster Certificates that Contain New DN</a></li></ul></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/authorization.html">Role-Based Access Control</a><ul><li class="toctree-l3"><a class="reference internal" href="../built-in-roles.html">Built-In Roles</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/security-user-defined-roles.html">User-Defined Roles</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/manage-users-and-roles.html">Manage Users and Roles</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/change-own-password-and-custom-data.html">Change Your Password and Custom Data</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/collection-level-access-control.html">Collection-Level Access Control</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/security-transport-encryption.html">TLS/SSL (Transport Encryption)</a><ul><li class="toctree-l3"><a class="reference internal" href="../../tutorial/configure-ssl.html">Configure <code class="docutils literal"><span class="pre">mongod</span></code> and <code class="docutils literal"><span class="pre">mongos</span></code> for TLS/SSL</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/configure-ssl-clients.html">TLS/SSL Configuration for Clients</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/upgrade-cluster-to-ssl.html">Upgrade a Cluster to Use TLS/SSL</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/configure-fips.html">Configure MongoDB for FIPS</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/security-encryption-at-rest.html">Encryption at Rest</a><ul><li class="toctree-l3"><a class="reference internal" href="../../tutorial/configure-encryption.html">Configure Encryption</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/rotate-encryption-key.html">Rotate Encryption Keys</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/security-client-side-encryption.html">Client-Side Field Level Encryption</a><ul><li class="toctree-l3"><a class="reference internal" href="../../core/security-automatic-client-side-encryption.html">Automatic Client-Side Field Level Encryption</a><ul><li class="toctree-l4"><a class="reference internal" href="../security-client-side-automatic-json-schema.html">Automatic Encryption Rules</a></li><li class="toctree-l4"><a class="reference internal" href="../security-client-side-query-aggregation-support.html">Read/Write Support with Automatic Field Level Encryption</a></li><li class="toctree-l4"><a class="reference internal" href="../security-client-side-encryption-appendix.html">Appendix</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../../core/security-explicit-client-side-encryption.html">Explicit (Manual) Client-Side Field Level Encryption</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/security-client-side-encryption-key-management.html">Master Key and Data Encryption Key Management</a><ul><li class="toctree-l4"><a class="reference internal" href="../../tutorial/manage-client-side-encryption-data-keys.html">Manage Data Encryption Keys</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../security-client-side-encryption-limitations.html">Limitations</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/auditing.html">Auditing</a><ul><li class="toctree-l3"><a class="reference internal" href="../../tutorial/configure-auditing.html">Configure Auditing</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/configure-audit-filters.html">Configure Audit Filters</a></li><li class="toctree-l3"><a class="reference internal" href="../audit-message.html">System Event Audit Messages</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/security-hardening.html">Network and Configuration Hardening</a><ul><li class="toctree-l3"><a class="reference internal" href="../../core/security-mongodb-configuration.html">IP Binding</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/configure-linux-iptables-firewall.html">Configure Linux <code class="docutils literal"><span class="pre">iptables</span></code> Firewall for MongoDB</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/configure-windows-netsh-firewall.html">Configure Windows <code class="docutils literal"><span class="pre">netsh</span></code> Firewall for MongoDB</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../tutorial/implement-field-level-redaction.html">Implement Field Level Redaction</a></li><li class="toctree-l2"><a class="reference internal" href="../security.html">Security Reference</a><ul><li class="toctree-l3"><a class="reference internal" href="../system-roles-collection.html"><code class="docutils literal"><span class="pre">system.roles</span></code> Collection</a></li><li class="toctree-l3"><a class="reference internal" href="../system-users-collection.html"><code class="docutils literal"><span class="pre">system.users</span></code> Collection</a></li><li class="toctree-l3"><a class="reference internal" href="../resource-document.html">Resource Document</a></li><li class="toctree-l3"><a class="reference internal" href="../privilege-actions.html">Privilege Actions</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../tutorial/create-a-vulnerability-report.html">Create a Vulnerability Report</a></li><li class="toctree-l2"><a class="reference internal" href="../../appendix/security.html">Appendix</a><ul><li class="toctree-l3"><a class="reference internal" href="../../appendix/security/appendixA-openssl-ca.html">Appendix A - OpenSSL CA Certificate for Testing</a></li><li class="toctree-l3"><a class="reference internal" href="../../appendix/security/appendixB-openssl-server.html">Appendix B - OpenSSL Server Certificates for Testing</a></li><li class="toctree-l3"><a class="reference internal" href="../../appendix/security/appendixC-openssl-client.html">Appendix C - OpenSSL Client Certificates for Testing</a></li></ul></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../../changeStreams.html">Change Streams</a><ul><li class="toctree-l2"><a class="reference internal" href="../../administration/change-streams-production-recommendations.html">Change Streams Production Recommendations</a></li><li class="toctree-l2"><a class="reference internal" href="../change-events.html">Change Events</a></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../../replication.html">Replication</a><ul><li class="toctree-l2"><a class="reference internal" href="../../core/replica-set-members.html">Replica Set Members</a><ul><li class="toctree-l3"><a class="reference internal" href="../../core/replica-set-primary.html">Replica Set Primary</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/replica-set-secondary.html">Replica Set Secondary Members</a><ul><li class="toctree-l4"><a class="reference internal" href="../../core/replica-set-priority-0-member.html">Priority 0 Replica Set Members</a></li><li class="toctree-l4"><a class="reference internal" href="../../core/replica-set-hidden-member.html">Hidden Replica Set Members</a></li><li class="toctree-l4"><a class="reference internal" href="../../core/replica-set-delayed-member.html">Delayed Replica Set Members</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../../core/replica-set-arbiter.html">Replica Set Arbiter</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/replica-set-oplog.html">Replica Set Oplog</a></li><li class="toctree-l2"><a class="reference internal" href="../../core/replica-set-sync.html">Replica Set Data Synchronization</a></li><li class="toctree-l2"><a class="reference internal" href="../../core/replica-set-architectures.html">Replica Set Deployment Architectures</a><ul><li class="toctree-l3"><a class="reference internal" href="../../core/replica-set-architecture-three-members.html">Three Member Replica Sets</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/replica-set-architecture-geographically-distributed.html">Replica Sets Distributed Across Two or More Data Centers</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/replica-set-high-availability.html">Replica Set High Availability</a><ul><li class="toctree-l3"><a class="reference internal" href="../../core/replica-set-elections.html">Replica Set Elections</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/replica-set-rollbacks.html">Rollbacks During Replica Set Failover</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../applications/replication.html">Replica Set Read and Write Semantics</a><ul><li class="toctree-l3"><a class="reference internal" href="../../core/replica-set-write-concern.html">Write Concern for Replica Sets</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/read-preference.html">Read Preference</a><ul><li class="toctree-l4"><a class="reference internal" href="../../core/read-preference-tags.html">Tag Sets</a></li><li class="toctree-l4"><a class="reference internal" href="../../core/read-preference-staleness.html">maxStalenessSeconds</a></li><li class="toctree-l4"><a class="reference internal" href="../../core/read-preference-use-cases.html">Read Preference Use Cases</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../../core/read-preference-mechanics.html">Server Selection Algorithm</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../administration/replica-set-deployment.html">Replica Set Deployment Tutorials</a><ul><li class="toctree-l3"><a class="reference internal" href="../../tutorial/deploy-replica-set.html">Deploy a Replica Set</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/deploy-replica-set-for-testing.html">Deploy a Replica Set for Testing and Development</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/deploy-geographically-distributed-replica-set.html">Deploy a Geographically Redundant Replica Set</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/add-replica-set-arbiter.html">Add an Arbiter to Replica Set</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/convert-standalone-to-replica-set.html">Convert a Standalone to a Replica Set</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/expand-replica-set.html">Add Members to a Replica Set</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/remove-replica-set-member.html">Remove Members from Replica Set</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/replace-replica-set-member.html">Replace a Replica Set Member</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../administration/replica-set-member-configuration.html">Member Configuration Tutorials</a><ul><li class="toctree-l3"><a class="reference internal" href="../../tutorial/adjust-replica-set-member-priority.html">Adjust Priority for Replica Set Member</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/configure-secondary-only-replica-set-member.html">Prevent Secondary from Becoming Primary</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/configure-a-hidden-replica-set-member.html">Configure a Hidden Replica Set Member</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/configure-a-delayed-replica-set-member.html">Configure a Delayed Replica Set Member</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/configure-a-non-voting-replica-set-member.html">Configure Non-Voting Replica Set Member</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/convert-secondary-into-arbiter.html">Convert a Secondary to an Arbiter</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../administration/replica-set-maintenance.html">Replica Set Maintenance Tutorials</a><ul><li class="toctree-l3"><a class="reference internal" href="../../tutorial/change-oplog-size.html">Change the Size of the Oplog</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/perform-maintence-on-replica-set-members.html">Perform Maintenance on Replica Set Members</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/force-member-to-be-primary.html">Force a Member to Become Primary</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/resync-replica-set-member.html">Resync a Member of a Replica Set</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/configure-replica-set-tag-sets.html">Configure Replica Set Tag Sets</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/reconfigure-replica-set-with-unavailable-members.html">Reconfigure a Replica Set with Unavailable Members</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/manage-chained-replication.html">Manage Chained Replication</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/change-hostnames-in-a-replica-set.html">Change Hostnames in a Replica Set</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/configure-replica-set-secondary-sync-target.html">Configure a Secondary’s Sync Target</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../replication.html">Replication Reference</a><ul><li class="toctree-l3"><a class="reference internal" href="../replica-configuration.html">Replica Set Configuration</a></li><li class="toctree-l3"><a class="reference internal" href="../replica-set-protocol-versions.html">Replica Set Protocol Version</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/troubleshoot-replica-sets.html">Troubleshoot Replica Sets</a></li><li class="toctree-l3"><a class="reference internal" href="../local-database.html">The <code class="docutils literal"><span class="pre">local</span></code> Database</a></li><li class="toctree-l3"><a class="reference internal" href="../replica-states.html">Replica Set Member States</a></li></ul></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../../sharding.html">Sharding</a><ul><li class="toctree-l2"><a class="reference internal" href="../../core/sharded-cluster-components.html">Sharded Cluster Components</a><ul><li class="toctree-l3"><a class="reference internal" href="../../core/sharded-cluster-shards.html">Shards</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/sharded-cluster-config-servers.html">Config Servers (metadata)</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/sharded-cluster-query-router.html">Router (mongos)</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/sharding-shard-key.html">Shard Keys</a></li><li class="toctree-l2"><a class="reference internal" href="../../core/hashed-sharding.html">Hashed Sharding</a></li><li class="toctree-l2"><a class="reference internal" href="../../core/ranged-sharding.html">Ranged Sharding</a></li><li class="toctree-l2"><a class="reference internal" href="../../tutorial/deploy-shard-cluster.html">Deploy a Sharded Cluster</a></li><li class="toctree-l2"><a class="reference internal" href="../../core/zone-sharding.html">Zones</a><ul><li class="toctree-l3"><a class="reference internal" href="../../tutorial/manage-shard-zone.html">Manage Shard Zones</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/sharding-segmenting-data-by-location.html">Segmenting Data by Location</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/sharding-tiered-hardware-for-varying-slas.html">Tiered Hardware for Varying SLA or SLO</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/sharding-segmenting-shards.html">Segmenting Data by Application or Customer</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/sharding-high-availability-writes.html">Distributed Local Writes for Insert Only Workloads</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/sharding-data-partitioning.html">Data Partitioning with Chunks</a><ul><li class="toctree-l3"><a class="reference internal" href="../../tutorial/create-chunks-in-sharded-cluster.html">Create Chunks in a Sharded Cluster</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/split-chunks-in-sharded-cluster.html">Split Chunks in a Sharded Cluster</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/merge-chunks-in-sharded-cluster.html">Merge Chunks in a Sharded Cluster</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/modify-chunk-size-in-sharded-cluster.html">Modify Chunk Size in a Sharded Cluster</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/sharding-balancer-administration.html">Balancer</a><ul><li class="toctree-l3"><a class="reference internal" href="../../tutorial/manage-sharded-cluster-balancer.html">Manage Sharded Cluster Balancer</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/migrate-chunks-in-sharded-cluster.html">Migrate Chunks in a Sharded Cluster</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../administration/sharded-cluster-administration.html">Administration</a><ul><li class="toctree-l3"><a class="reference internal" href="../../administration/sharded-cluster-config-servers.html">Config Server Administration</a><ul><li class="toctree-l4"><a class="reference internal" href="../../tutorial/replace-config-server.html">Replace a Config Server</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/view-sharded-cluster-configuration.html">View Cluster Configuration</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/restart-sharded-cluster.html">Restart a Sharded Cluster</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/migrate-sharded-cluster-to-new-hardware.html">Migrate a Sharded Cluster to Different Hardware</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/add-shards-to-shard-cluster.html">Add Shards to a Cluster</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/remove-shards-from-cluster.html">Remove Shards from an Existing Sharded Cluster</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/clear-jumbo-flag.html">Clear <code class="docutils literal"><span class="pre">jumbo</span></code> Flag</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/backup-sharded-cluster-metadata.html">Back Up Cluster Metadata</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/convert-sharded-cluster-to-replica-set.html">Convert Sharded Cluster to Replica Set</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/convert-replica-set-to-replicated-shard-cluster.html">Convert a Replica Set to a Sharded Cluster</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/convert-shard-standalone-to-shard-replica-set.html">Convert a Shard Standalone to a Shard Replica Set</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../sharding.html">Sharding Reference</a><ul><li class="toctree-l3"><a class="reference internal" href="../../core/sharded-cluster-requirements.html">Operational Restrictions</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/troubleshoot-sharded-clusters.html">Troubleshoot Sharded Clusters</a></li><li class="toctree-l3"><a class="reference internal" href="../config-database.html">Config Database</a></li></ul></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../../administration.html">Administration</a><ul><li class="toctree-l2"><a class="reference internal" href="../../administration/production-notes.html">Production Notes</a></li><li class="toctree-l2"><a class="reference internal" href="../../administration/production-checklist-operations.html">Operations Checklist</a></li><li class="toctree-l2"><a class="reference internal" href="../../administration/production-checklist-development.html">Development Checklist</a></li><li class="toctree-l2"><a class="reference internal" href="../../administration/analyzing-mongodb-performance.html">Performance</a><ul><li class="toctree-l3"><a class="reference internal" href="../../tutorial/manage-the-database-profiler.html">Database Profiler</a><ul><li class="toctree-l4"><a class="reference internal" href="../database-profiler.html">Database Profiler Output</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/transparent-huge-pages.html">Disable Transparent Huge Pages (THP)</a></li><li class="toctree-l3"><a class="reference internal" href="../ulimit.html">UNIX <code class="docutils literal"><span class="pre">ulimit</span></code> Settings</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../administration/configuration-and-maintenance.html">Configuration and Maintenance</a><ul><li class="toctree-l3"><a class="reference internal" href="../../administration/configuration.html">Run-time Database Configuration</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/upgrade-revision.html">Upgrade to the Latest Revision of MongoDB</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/manage-mongodb-processes.html">Manage <code class="docutils literal"><span class="pre">mongod</span></code> Processes</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/terminate-running-operations.html">Terminate Running Operations</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/rotate-log-files.html">Rotate Log Files</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../data-center-awareness.html">Data Center Awareness</a><ul><li class="toctree-l3"><a class="reference internal" href="../../core/workload-isolation.html">Workload Isolation in MongoDB Deployments</a></li><li class="toctree-l3"><a class="reference internal" href="../../core/zone-sharding.html">Zones</a><ul><li class="toctree-l4"><a class="reference internal" href="../../tutorial/manage-shard-zone.html">Manage Shard Zones</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/sharding-segmenting-data-by-location.html">Segmenting Data by Location</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/sharding-tiered-hardware-for-varying-slas.html">Tiered Hardware for Varying SLA or SLO</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/sharding-segmenting-shards.html">Segmenting Data by Application or Customer</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/sharding-high-availability-writes.html">Distributed Local Writes for Insert Only Workloads</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/manage-shard-zone.html">Manage Shard Zones</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/backups.html">MongoDB Backup Methods</a><ul><li class="toctree-l3"><a class="reference internal" href="../../tutorial/backup-with-filesystem-snapshots.html">Back Up and Restore with Filesystem Snapshots</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/backup-and-restore-tools.html">Back Up and Restore with MongoDB Tools</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/restore-replica-set-from-backup.html">Restore a Replica Set from MongoDB Backups</a></li><li class="toctree-l3"><a class="reference internal" href="../../administration/backup-sharded-clusters.html">Backup and Restore Sharded Clusters</a><ul><li class="toctree-l4"><a class="reference internal" href="../../tutorial/backup-sharded-cluster-with-filesystem-snapshots.html">Back Up a Sharded Cluster with File System Snapshots</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/backup-sharded-cluster-with-database-dumps.html">Back Up a Sharded Cluster with Database Dumps</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/schedule-backup-window-for-sharded-clusters.html">Schedule Backup Window for Sharded Clusters</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/restore-sharded-cluster.html">Restore a Sharded Cluster</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/recover-data-following-unexpected-shutdown.html">Recover a Standalone after an Unexpected Shutdown</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../administration/monitoring.html">Monitoring for MongoDB</a><ul><li class="toctree-l3"><a class="reference internal" href="../../administration/free-monitoring.html">Free Monitoring</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/monitor-with-snmp.html">Monitor MongoDB With SNMP on Linux</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/monitor-with-snmp-on-windows.html">Monitor MongoDB Windows with SNMP</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/troubleshoot-snmp.html">Troubleshoot SNMP</a></li></ul></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../../storage.html">Storage</a><ul><li class="toctree-l2"><a class="reference internal" href="../../core/storage-engines.html">Storage Engines</a><ul><li class="toctree-l3"><a class="reference internal" href="../../core/wiredtiger.html">WiredTiger Storage Engine</a><ul><li class="toctree-l4"><a class="reference internal" href="../../tutorial/change-standalone-wiredtiger.html">Change Standalone to WiredTiger</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/change-replica-set-wiredtiger.html">Change Replica Set to WiredTiger</a></li><li class="toctree-l4"><a class="reference internal" href="../../tutorial/change-sharded-cluster-wiredtiger.html">Change Sharded Cluster to WiredTiger</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../../core/inmemory.html">In-Memory Storage Engine</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/journaling.html">Journaling</a><ul><li class="toctree-l3"><a class="reference internal" href="../../tutorial/manage-journaling.html">Manage Journaling</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../core/gridfs.html">GridFS</a></li><li class="toctree-l2"><a class="reference internal" href="../../faq/storage.html">FAQ: MongoDB Storage</a></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../../faq.html">Frequently Asked Questions</a><ul><li class="toctree-l2"><a class="reference internal" href="../../faq/fundamentals.html">FAQ: MongoDB Fundamentals</a></li><li class="toctree-l2"><a class="reference internal" href="../../faq/indexes.html">FAQ: Indexes</a></li><li class="toctree-l2"><a class="reference internal" href="../../faq/concurrency.html">FAQ: Concurrency</a></li><li class="toctree-l2"><a class="reference internal" href="../../faq/sharding.html">FAQ: Sharding with MongoDB</a></li><li class="toctree-l2"><a class="reference internal" href="../../faq/replica-sets.html">FAQ: Replication and Replica Sets</a></li><li class="toctree-l2"><a class="reference internal" href="../../faq/storage.html">FAQ: MongoDB Storage</a></li><li class="toctree-l2"><a class="reference internal" href="../../faq/diagnostics.html">FAQ: MongoDB Diagnostics</a></li></ul></li><li class="toctree-l1 current"><a class="reference internal" href="../../reference.html">Reference</a><ul class="current"><li class="toctree-l2"><a class="reference internal" href="../operator.html">Operators</a><ul><li class="toctree-l3"><a class="reference internal" href="../operator/query.html">Query and Projection Operators</a><ul><li class="toctree-l4"><a class="reference internal" href="../operator/query-comparison.html">Comparison Query Operators</a><ul><li class="toctree-l5"><a class="reference internal" href="../operator/query/eq.html">$eq</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/gt.html">$gt</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/gte.html">$gte</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/in.html">$in</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/lt.html">$lt</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/lte.html">$lte</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/ne.html">$ne</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/nin.html">$nin</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../operator/query-logical.html">Logical Query Operators</a><ul><li class="toctree-l5"><a class="reference internal" href="../operator/query/and.html">$and</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/not.html">$not</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/nor.html">$nor</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/or.html">$or</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../operator/query-element.html">Element Query Operators</a><ul><li class="toctree-l5"><a class="reference internal" href="../operator/query/exists.html">$exists</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/type.html">$type</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../operator/query-evaluation.html">Evaluation Query Operators</a><ul><li class="toctree-l5"><a class="reference internal" href="../operator/query/expr.html">$expr</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/jsonSchema.html">$jsonSchema</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/mod.html">$mod</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/regex.html">$regex</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/text.html">$text</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/where.html">$where</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../operator/query-geospatial.html">Geospatial Query Operators</a><ul><li class="toctree-l5"><a class="reference internal" href="../operator/query/geoIntersects.html">$geoIntersects</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/geoWithin.html">$geoWithin</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/near.html">$near</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/nearSphere.html">$nearSphere</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/box.html">$box</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/center.html">$center</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/centerSphere.html">$centerSphere</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/geometry.html">$geometry</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/maxDistance.html">$maxDistance</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/minDistance.html">$minDistance</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/polygon.html">$polygon</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/uniqueDocs.html">$uniqueDocs</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../operator/query-array.html">Array Query Operators</a><ul><li class="toctree-l5"><a class="reference internal" href="../operator/query/all.html">$all</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/elemMatch.html">$elemMatch (query)</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/size.html">$size</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../operator/query-bitwise.html">Bitwise Query Operators</a><ul><li class="toctree-l5"><a class="reference internal" href="../operator/query/bitsAllClear.html">$bitsAllClear</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/bitsAllSet.html">$bitsAllSet</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/bitsAnyClear.html">$bitsAnyClear</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/query/bitsAnySet.html">$bitsAnySet</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../operator/query/comment.html">$comment</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/projection.html">Projection Operators</a><ul><li class="toctree-l5"><a class="reference internal" href="../operator/projection/positional.html">$ (projection)</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/projection/elemMatch.html">$elemMatch (projection)</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/projection/meta.html">$meta</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/projection/slice.html">$slice (projection)</a></li></ul></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../operator/update.html">Update Operators</a><ul><li class="toctree-l4"><a class="reference internal" href="../operator/update-field.html">Field Update Operators</a><ul><li class="toctree-l5"><a class="reference internal" href="../operator/update/currentDate.html">$currentDate</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/update/inc.html">$inc</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/update/min.html">$min</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/update/max.html">$max</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/update/mul.html">$mul</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/update/rename.html">$rename</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/update/set.html">$set</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/update/setOnInsert.html">$setOnInsert</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/update/unset.html">$unset</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../operator/update-array.html">Array Update Operators</a><ul><li class="toctree-l5"><a class="reference internal" href="../operator/update/positional.html">$ (update)</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/update/positional-all.html">$[]</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/update/positional-filtered.html">$[&lt;identifier&gt;]</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/update/addToSet.html">$addToSet</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/update/pop.html">$pop</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/update/pull.html">$pull</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/update/push.html">$push</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/update/pullAll.html">$pullAll</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/update/each.html">$each</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/update/position.html">$position</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/update/slice.html">$slice</a></li><li class="toctree-l5"><a class="reference internal" href="../operator/update/sort.html">$sort</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../operator/update-bitwise.html">Bitwise Update Operator</a><ul><li class="toctree-l5"><a class="reference internal" href="../operator/update/bit.html">$bit</a></li></ul></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../operator/aggregation-pipeline.html">Aggregation Pipeline Stages</a><ul><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/addFields.html">$addFields (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/bucket.html">$bucket (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/bucketAuto.html">$bucketAuto (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/collStats.html">$collStats (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/count.html">$count (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/currentOp.html">$currentOp (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/facet.html">$facet (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/geoNear.html">$geoNear (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/graphLookup.html">$graphLookup (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/group.html">$group (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/indexStats.html">$indexStats (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/limit.html">$limit (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/listLocalSessions.html">$listLocalSessions</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/listSessions.html">$listSessions</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/lookup.html">$lookup (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/match.html">$match (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/merge.html">$merge (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/out.html">$out (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/planCacheStats.html">$planCacheStats</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/project.html">$project (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/redact.html">$redact (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/replaceRoot.html">$replaceRoot (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/replaceWith.html">$replaceWith (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/sample.html">$sample (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/set.html">$set (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/skip.html">$skip (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/sort.html">$sort (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/sortByCount.html">$sortByCount (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/unset.html">$unset (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/unwind.html">$unwind (aggregation)</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../operator/aggregation.html">Aggregation Pipeline Operators</a><ul><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/abs.html">$abs (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/acos.html">$acos (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/acosh.html">$acosh (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/add.html">$add (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/addToSet.html">$addToSet (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/allElementsTrue.html">$allElementsTrue (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/and.html">$and (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/anyElementTrue.html">$anyElementTrue (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/arrayElemAt.html">$arrayElemAt (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/arrayToObject.html">$arrayToObject (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/asin.html">$asin (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/asinh.html">$asinh (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/atan.html">$atan (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/atan2.html">$atan2 (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/atanh.html">$atanh (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/avg.html">$avg (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/ceil.html">$ceil (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/cmp.html">$cmp (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/concat.html">$concat (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/concatArrays.html">$concatArrays (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/cond.html">$cond (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/convert.html">$convert (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/cos.html">$cos (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/dateFromParts.html">$dateFromParts (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/dateToParts.html">$dateToParts (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/dateFromString.html">$dateFromString (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/dateToString.html">$dateToString (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/dayOfMonth.html">$dayOfMonth (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/dayOfWeek.html">$dayOfWeek (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/dayOfYear.html">$dayOfYear (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/degreesToRadians.html">$degreesToRadians (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/divide.html">$divide (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/eq.html">$eq (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/exp.html">$exp (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/filter.html">$filter (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/first.html">$first (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/floor.html">$floor (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/gt.html">$gt (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/gte.html">$gte (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/hour.html">$hour (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/ifNull.html">$ifNull (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/in.html">$in (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/indexOfArray.html">$indexOfArray (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/indexOfBytes.html">$indexOfBytes (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/indexOfCP.html">$indexOfCP (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/isArray.html">$isArray (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/isoDayOfWeek.html">$isoDayOfWeek (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/isoWeek.html">$isoWeek (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/isoWeekYear.html">$isoWeekYear (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/last.html">$last (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/let.html">$let (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/literal.html">$literal (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/ln.html">$ln (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/log.html">$log (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/log10.html">$log10 (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/lt.html">$lt (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/lte.html">$lte (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/ltrim.html">$ltrim (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/map.html">$map (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/max.html">$max (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/mergeObjects.html">$mergeObjects (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/meta.html">$meta (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/min.html">$min (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/millisecond.html">$millisecond (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/minute.html">$minute (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/mod.html">$mod (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/month.html">$month (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/multiply.html">$multiply (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/ne.html">$ne (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/not.html">$not (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/objectToArray.html">$objectToArray (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/or.html">$or (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/pow.html">$pow (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/push.html">$push (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/radiansToDegrees.html">$radiansToDegrees (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/range.html">$range (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/reduce.html">$reduce (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/regexFind.html">$regexFind (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/regexFindAll.html">$regexFindAll (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/regexMatch.html">$regexMatch (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/reverseArray.html">$reverseArray (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/round.html">$round (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/rtrim.html">$rtrim (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/second.html">$second (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/setDifference.html">$setDifference (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/setEquals.html">$setEquals (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/setIntersection.html">$setIntersection (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/setIsSubset.html">$setIsSubset (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/setUnion.html">$setUnion (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/size.html">$size (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/sin.html">$sin (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/slice.html">$slice (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/split.html">$split (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/sqrt.html">$sqrt (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/stdDevPop.html">$stdDevPop (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/stdDevSamp.html">$stdDevSamp (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/strcasecmp.html">$strcasecmp (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/strLenBytes.html">$strLenBytes (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/strLenCP.html">$strLenCP (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/substr.html">$substr (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/substrBytes.html">$substrBytes (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/substrCP.html">$substrCP (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/subtract.html">$subtract (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/sum.html">$sum (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/switch.html">$switch (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/tan.html">$tan (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/toBool.html">$toBool (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/toDate.html">$toDate (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/toDecimal.html">$toDecimal (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/toDouble.html">$toDouble(aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/toInt.html">$toInt (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/toLong.html">$toLong (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/toObjectId.html">$toObjectId (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/toString.html">$toString (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/toLower.html">$toLower (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/toUpper.html">$toUpper (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/trim.html">$trim (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/trunc.html">$trunc (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/type.html">$type (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/week.html">$week (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/year.html">$year (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/aggregation/zip.html">$zip (aggregation)</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../operator/query-modifier.html">Query Modifiers</a><ul><li class="toctree-l4"><a class="reference internal" href="../operator/meta/comment.html">$comment</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/meta/explain.html">$explain</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/meta/hint.html">$hint</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/meta/max.html">$max</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/meta/maxTimeMS.html">$maxTimeMS</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/meta/min.html">$min</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/meta/orderby.html">$orderby</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/meta/query.html">$query</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/meta/returnKey.html">$returnKey</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/meta/showDiskLoc.html">$showDiskLoc</a></li><li class="toctree-l4"><a class="reference internal" href="../operator/meta/natural.html">$natural</a></li></ul></li></ul></li><li class="toctree-l2 current"><a class="reference internal" href="../command.html">Database Commands</a><ul class="current"><li class="toctree-l3"><a class="reference internal" href="nav-aggregation.html">Aggregation Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="aggregate.html">aggregate</a></li><li class="toctree-l4"><a class="reference internal" href="count.html">count</a></li><li class="toctree-l4"><a class="reference internal" href="distinct.html">distinct</a></li><li class="toctree-l4"><a class="reference internal" href="mapReduce.html">mapReduce</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="nav-geospatial.html">Geospatial Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="geoSearch.html">geoSearch</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="nav-crud.html">Query and Write Operation Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="delete.html">delete</a></li><li class="toctree-l4"><a class="reference internal" href="find.html">find</a></li><li class="toctree-l4"><a class="reference internal" href="findAndModify.html">findAndModify</a></li><li class="toctree-l4"><a class="reference internal" href="getLastError.html">getLastError</a></li><li class="toctree-l4"><a class="reference internal" href="getMore.html">getMore</a></li><li class="toctree-l4"><a class="reference internal" href="insert.html">insert</a></li><li class="toctree-l4"><a class="reference internal" href="resetError.html">resetError</a></li><li class="toctree-l4"><a class="reference internal" href="update.html">update</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="nav-plan-cache.html">Query Plan Cache Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="planCacheClear.html">planCacheClear</a></li><li class="toctree-l4"><a class="reference internal" href="planCacheClearFilters.html">planCacheClearFilters</a></li><li class="toctree-l4"><a class="reference internal" href="planCacheListFilters.html">planCacheListFilters</a></li><li class="toctree-l4"><a class="reference internal" href="planCacheListPlans.html">planCacheListPlans</a></li><li class="toctree-l4"><a class="reference internal" href="planCacheListQueryShapes.html">planCacheListQueryShapes</a></li><li class="toctree-l4"><a class="reference internal" href="planCacheSetFilter.html">planCacheSetFilter</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="nav-authentication.html">Authentication Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="authenticate.html">authenticate</a></li><li class="toctree-l4"><a class="reference internal" href="getnonce.html">getnonce</a></li><li class="toctree-l4"><a class="reference internal" href="logout.html">logout</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="nav-user-management.html">User Management Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="createUser.html">createUser</a></li><li class="toctree-l4"><a class="reference internal" href="dropAllUsersFromDatabase.html">dropAllUsersFromDatabase</a></li><li class="toctree-l4"><a class="reference internal" href="dropUser.html">dropUser</a></li><li class="toctree-l4"><a class="reference internal" href="grantRolesToUser.html">grantRolesToUser</a></li><li class="toctree-l4"><a class="reference internal" href="revokeRolesFromUser.html">revokeRolesFromUser</a></li><li class="toctree-l4"><a class="reference internal" href="updateUser.html">updateUser</a></li><li class="toctree-l4"><a class="reference internal" href="usersInfo.html">usersInfo</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="nav-role-management.html">Role Management Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="createRole.html">createRole</a></li><li class="toctree-l4"><a class="reference internal" href="dropRole.html">dropRole</a></li><li class="toctree-l4"><a class="reference internal" href="dropAllRolesFromDatabase.html">dropAllRolesFromDatabase</a></li><li class="toctree-l4"><a class="reference internal" href="grantPrivilegesToRole.html">grantPrivilegesToRole</a></li><li class="toctree-l4"><a class="reference internal" href="grantRolesToRole.html">grantRolesToRole</a></li><li class="toctree-l4"><a class="reference internal" href="invalidateUserCache.html">invalidateUserCache</a></li><li class="toctree-l4"><a class="reference internal" href="revokePrivilegesFromRole.html">revokePrivilegesFromRole</a></li><li class="toctree-l4"><a class="reference internal" href="revokeRolesFromRole.html">revokeRolesFromRole</a></li><li class="toctree-l4"><a class="reference internal" href="rolesInfo.html">rolesInfo</a></li><li class="toctree-l4"><a class="reference internal" href="updateRole.html">updateRole</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="nav-replication.html">Replication Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="applyOps.html">applyOps</a></li><li class="toctree-l4"><a class="reference internal" href="isMaster.html">isMaster</a></li><li class="toctree-l4"><a class="reference internal" href="replSetAbortPrimaryCatchUp.html">replSetAbortPrimaryCatchUp</a></li><li class="toctree-l4"><a class="reference internal" href="replSetFreeze.html">replSetFreeze</a></li><li class="toctree-l4"><a class="reference internal" href="replSetGetConfig.html">replSetGetConfig</a></li><li class="toctree-l4"><a class="reference internal" href="replSetGetStatus.html">replSetGetStatus</a></li><li class="toctree-l4"><a class="reference internal" href="replSetInitiate.html">replSetInitiate</a></li><li class="toctree-l4"><a class="reference internal" href="replSetMaintenance.html">replSetMaintenance</a></li><li class="toctree-l4"><a class="reference internal" href="replSetReconfig.html">replSetReconfig</a></li><li class="toctree-l4"><a class="reference internal" href="replSetResizeOplog.html">replSetResizeOplog</a></li><li class="toctree-l4"><a class="reference internal" href="replSetStepDown.html">replSetStepDown</a></li><li class="toctree-l4"><a class="reference internal" href="replSetSyncFrom.html">replSetSyncFrom</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="nav-sharding.html">Sharding Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="addShard.html">addShard</a></li><li class="toctree-l4"><a class="reference internal" href="addShardToZone.html">addShardToZone</a></li><li class="toctree-l4"><a class="reference internal" href="balancerStart.html">balancerStart</a></li><li class="toctree-l4"><a class="reference internal" href="balancerStatus.html">balancerStatus</a></li><li class="toctree-l4"><a class="reference internal" href="balancerStop.html">balancerStop</a></li><li class="toctree-l4"><a class="reference internal" href="checkShardingIndex.html">checkShardingIndex</a></li><li class="toctree-l4"><a class="reference internal" href="clearJumboFlag.html">clearJumboFlag</a></li><li class="toctree-l4"><a class="reference internal" href="cleanupOrphaned.html">cleanupOrphaned</a></li><li class="toctree-l4"><a class="reference internal" href="enableSharding.html">enableSharding</a></li><li class="toctree-l4"><a class="reference internal" href="flushRouterConfig.html">flushRouterConfig</a></li><li class="toctree-l4"><a class="reference internal" href="getShardMap.html">getShardMap</a></li><li class="toctree-l4"><a class="reference internal" href="getShardVersion.html">getShardVersion</a></li><li class="toctree-l4"><a class="reference internal" href="isdbgrid.html">isdbgrid</a></li><li class="toctree-l4"><a class="reference internal" href="listShards.html">listShards</a></li><li class="toctree-l4"><a class="reference internal" href="medianKey.html">medianKey</a></li><li class="toctree-l4"><a class="reference internal" href="moveChunk.html">moveChunk</a></li><li class="toctree-l4"><a class="reference internal" href="movePrimary.html">movePrimary</a></li><li class="toctree-l4"><a class="reference internal" href="mergeChunks.html">mergeChunks</a></li><li class="toctree-l4"><a class="reference internal" href="removeShard.html">removeShard</a></li><li class="toctree-l4"><a class="reference internal" href="removeShardFromZone.html">removeShardFromZone</a></li><li class="toctree-l4"><a class="reference internal" href="setShardVersion.html">setShardVersion</a></li><li class="toctree-l4"><a class="reference internal" href="shardCollection.html">shardCollection</a></li><li class="toctree-l4"><a class="reference internal" href="shardingState.html">shardingState</a></li><li class="toctree-l4"><a class="reference internal" href="split.html">split</a></li><li class="toctree-l4"><a class="reference internal" href="splitChunk.html">splitChunk</a></li><li class="toctree-l4"><a class="reference internal" href="splitVector.html">splitVector</a></li><li class="toctree-l4"><a class="reference internal" href="unsetSharding.html">unsetSharding</a></li><li class="toctree-l4"><a class="reference internal" href="updateZoneKeyRange.html">updateZoneKeyRange</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="nav-sessions.html">Sessions Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="abortTransaction.html">abortTransaction</a></li><li class="toctree-l4"><a class="reference internal" href="commitTransaction.html">commitTransaction</a></li><li class="toctree-l4"><a class="reference internal" href="endSessions.html">endSessions</a></li><li class="toctree-l4"><a class="reference internal" href="killAllSessions.html">killAllSessions</a></li><li class="toctree-l4"><a class="reference internal" href="killAllSessionsByPattern.html">killAllSessionsByPattern</a></li><li class="toctree-l4"><a class="reference internal" href="killSessions.html">killSessions</a></li><li class="toctree-l4"><a class="reference internal" href="refreshSessions.html">refreshSessions</a></li><li class="toctree-l4"><a class="reference internal" href="startSession.html">startSession</a></li></ul></li><li class="toctree-l3 current"><a class="reference internal" href="nav-administration.html">Administration Commands</a><ul class="current"><li class="toctree-l4"><a class="reference internal" href="clean.html">clean</a></li><li class="toctree-l4"><a class="reference internal" href="cloneCollection.html">cloneCollection</a></li><li class="toctree-l4"><a class="reference internal" href="cloneCollectionAsCapped.html">cloneCollectionAsCapped</a></li><li class="toctree-l4"><a class="reference internal" href="collMod.html">collMod</a></li><li class="toctree-l4"><a class="reference internal" href="compact.html">compact</a></li><li class="toctree-l4"><a class="reference internal" href="connPoolSync.html">connPoolSync</a></li><li class="toctree-l4"><a class="reference internal" href="convertToCapped.html">convertToCapped</a></li><li class="toctree-l4"><a class="reference internal" href="create.html">create</a></li><li class="toctree-l4"><a class="reference internal" href="createIndexes.html">createIndexes</a></li><li class="toctree-l4 current"><a class="reference internal current" href="">currentOp</a></li><li class="toctree-l4"><a class="reference internal" href="drop.html">drop</a></li><li class="toctree-l4"><a class="reference internal" href="dropDatabase.html">dropDatabase</a></li><li class="toctree-l4"><a class="reference internal" href="dropConnections.html">dropConnections</a></li><li class="toctree-l4"><a class="reference internal" href="dropIndexes.html">dropIndexes</a></li><li class="toctree-l4"><a class="reference internal" href="filemd5.html">filemd5</a></li><li class="toctree-l4"><a class="reference internal" href="fsync.html">fsync</a></li><li class="toctree-l4"><a class="reference internal" href="fsyncUnlock.html">fsyncUnlock</a></li><li class="toctree-l4"><a class="reference internal" href="getParameter.html">getParameter</a></li><li class="toctree-l4"><a class="reference internal" href="killCursors.html">killCursors</a></li><li class="toctree-l4"><a class="reference internal" href="killOp.html">killOp</a></li><li class="toctree-l4"><a class="reference internal" href="listCollections.html">listCollections</a></li><li class="toctree-l4"><a class="reference internal" href="listDatabases.html">listDatabases</a></li><li class="toctree-l4"><a class="reference internal" href="listIndexes.html">listIndexes</a></li><li class="toctree-l4"><a class="reference internal" href="logRotate.html">logRotate</a></li><li class="toctree-l4"><a class="reference internal" href="reIndex.html">reIndex</a></li><li class="toctree-l4"><a class="reference internal" href="renameCollection.html">renameCollection</a></li><li class="toctree-l4"><a class="reference internal" href="setFeatureCompatibilityVersion.html">setFeatureCompatibilityVersion</a></li><li class="toctree-l4"><a class="reference internal" href="setParameter.html">setParameter</a></li><li class="toctree-l4"><a class="reference internal" href="shutdown.html">shutdown</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="nav-diagnostic.html">Diagnostic Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="availableQueryOptions.html">availableQueryOptions</a></li><li class="toctree-l4"><a class="reference internal" href="buildInfo.html">buildInfo</a></li><li class="toctree-l4"><a class="reference internal" href="collStats.html">collStats</a></li><li class="toctree-l4"><a class="reference internal" href="connPoolStats.html">connPoolStats</a></li><li class="toctree-l4"><a class="reference internal" href="connectionStatus.html">connectionStatus</a></li><li class="toctree-l4"><a class="reference internal" href="cursorInfo.html">cursorInfo</a></li><li class="toctree-l4"><a class="reference internal" href="dataSize.html">dataSize</a></li><li class="toctree-l4"><a class="reference internal" href="dbHash.html">dbHash</a></li><li class="toctree-l4"><a class="reference internal" href="dbStats.html">dbStats</a></li><li class="toctree-l4"><a class="reference internal" href="diagLogging.html">diagLogging</a></li><li class="toctree-l4"><a class="reference internal" href="driverOIDTest.html">driverOIDTest</a></li><li class="toctree-l4"><a class="reference internal" href="explain.html">explain</a></li><li class="toctree-l4"><a class="reference internal" href="features.html">features</a></li><li class="toctree-l4"><a class="reference internal" href="getCmdLineOpts.html">getCmdLineOpts</a></li><li class="toctree-l4"><a class="reference internal" href="getLog.html">getLog</a></li><li class="toctree-l4"><a class="reference internal" href="hostInfo.html">hostInfo</a></li><li class="toctree-l4"><a class="reference internal" href="isSelf.html">isSelf</a></li><li class="toctree-l4"><a class="reference internal" href="listCommands.html">listCommands</a></li><li class="toctree-l4"><a class="reference internal" href="netstat.html">netstat</a></li><li class="toctree-l4"><a class="reference internal" href="ping.html">ping</a></li><li class="toctree-l4"><a class="reference internal" href="profile.html">profile</a></li><li class="toctree-l4"><a class="reference internal" href="serverStatus.html">serverStatus</a></li><li class="toctree-l4"><a class="reference internal" href="shardConnPoolStats.html">shardConnPoolStats</a></li><li class="toctree-l4"><a class="reference internal" href="top.html">top</a></li><li class="toctree-l4"><a class="reference internal" href="validate.html">validate</a></li><li class="toctree-l4"><a class="reference internal" href="whatsmyuri.html">whatsmyuri</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="nav-free-monitoring.html">Free Monitoring Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="getFreeMonitoringStatus.html">getFreeMonitoringStatus</a></li><li class="toctree-l4"><a class="reference internal" href="setFreeMonitoring.html">setFreeMonitoring</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="nav-auditing.html">System Events Auditing Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="logApplicationMessage.html">logApplicationMessage</a></li></ul></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../method.html"><code class="docutils literal"><span class="pre">mongo</span></code> Shell Methods</a><ul><li class="toctree-l3"><a class="reference internal" href="../method/js-collection.html">Collection Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.aggregate.html">db.collection.aggregate()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.bulkWrite.html">db.collection.bulkWrite()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.copyTo.html">db.collection.copyTo()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.count.html">db.collection.count()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.countDocuments.html">db.collection.countDocuments()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.estimatedDocumentCount.html">db.collection.estimatedDocumentCount()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.createIndex.html">db.collection.createIndex()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.createIndexes.html">db.collection.createIndexes()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.dataSize.html">db.collection.dataSize()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.deleteOne.html">db.collection.deleteOne()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.deleteMany.html">db.collection.deleteMany()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.distinct.html">db.collection.distinct()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.drop.html">db.collection.drop()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.dropIndex.html">db.collection.dropIndex()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.dropIndexes.html">db.collection.dropIndexes()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.ensureIndex.html">db.collection.ensureIndex()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.explain.html">db.collection.explain()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.find.html">db.collection.find()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.findAndModify.html">db.collection.findAndModify()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.findOne.html">db.collection.findOne()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.findOneAndDelete.html">db.collection.findOneAndDelete()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.findOneAndReplace.html">db.collection.findOneAndReplace()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.findOneAndUpdate.html">db.collection.findOneAndUpdate()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.getIndexes.html">db.collection.getIndexes()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.getShardDistribution.html">db.collection.getShardDistribution()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.getShardVersion.html">db.collection.getShardVersion()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.insert.html">db.collection.insert()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.insertOne.html">db.collection.insertOne()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.insertMany.html">db.collection.insertMany()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.isCapped.html">db.collection.isCapped()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.latencyStats.html">db.collection.latencyStats()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.mapReduce.html">db.collection.mapReduce()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.reIndex.html">db.collection.reIndex()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.remove.html">db.collection.remove()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.renameCollection.html">db.collection.renameCollection()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.replaceOne.html">db.collection.replaceOne()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.save.html">db.collection.save()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.stats.html">db.collection.stats()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.storageSize.html">db.collection.storageSize()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.totalIndexSize.html">db.collection.totalIndexSize()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.totalSize.html">db.collection.totalSize()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.update.html">db.collection.update()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.updateOne.html">db.collection.updateOne()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.updateMany.html">db.collection.updateMany()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.watch.html">db.collection.watch()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.validate.html">db.collection.validate()</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../method/js-cursor.html">Cursor Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="../method/cursor.addOption.html">cursor.addOption()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.allowPartialResults.html">cursor.allowPartialResults()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.batchSize.html">cursor.batchSize()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.close.html">cursor.close()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.isClosed.html">cursor.isClosed()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.collation.html">cursor.collation()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.comment.html">cursor.comment()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.count.html">cursor.count()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.explain.html">cursor.explain()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.forEach.html">cursor.forEach()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.hasNext.html">cursor.hasNext()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.hint.html">cursor.hint()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.isExhausted.html">cursor.isExhausted()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.itcount.html">cursor.itcount()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.limit.html">cursor.limit()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.map.html">cursor.map()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.max.html">cursor.max()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.maxTimeMS.html">cursor.maxTimeMS()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.min.html">cursor.min()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.next.html">cursor.next()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.noCursorTimeout.html">cursor.noCursorTimeout()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.objsLeftInBatch.html">cursor.objsLeftInBatch()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.pretty.html">cursor.pretty()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.readConcern.html">cursor.readConcern()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.readPref.html">cursor.readPref()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.returnKey.html">cursor.returnKey()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.showRecordId.html">cursor.showRecordId()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.size.html">cursor.size()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.skip.html">cursor.skip()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.sort.html">cursor.sort()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.tailable.html">cursor.tailable()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cursor.toArray.html">cursor.toArray()</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../method/js-database.html">Database Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="../method/db.adminCommand.html">db.adminCommand()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.aggregate.html">db.aggregate()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.cloneCollection.html">db.cloneCollection()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.cloneDatabase.html">db.cloneDatabase()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.commandHelp.html">db.commandHelp()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.copyDatabase.html">db.copyDatabase()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.createCollection.html">db.createCollection()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.createView.html">db.createView()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.currentOp.html">db.currentOp()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.dropDatabase.html">db.dropDatabase()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.eval.html">db.eval()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.fsyncLock.html">db.fsyncLock()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.fsyncUnlock.html">db.fsyncUnlock()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.getCollection.html">db.getCollection()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.getCollectionInfos.html">db.getCollectionInfos()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.getCollectionNames.html">db.getCollectionNames()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.getLastError.html">db.getLastError()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.getLastErrorObj.html">db.getLastErrorObj()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.getLogComponents.html">db.getLogComponents()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.getMongo.html">db.getMongo()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.getName.html">db.getName()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.getProfilingLevel.html">db.getProfilingLevel()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.getProfilingStatus.html">db.getProfilingStatus()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.getReplicationInfo.html">db.getReplicationInfo()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.getSiblingDB.html">db.getSiblingDB()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.help.html">db.help()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.hostInfo.html">db.hostInfo()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.isMaster.html">db.isMaster()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.killOp.html">db.killOp()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.listCommands.html">db.listCommands()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.logout.html">db.logout()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.printCollectionStats.html">db.printCollectionStats()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.printReplicationInfo.html">db.printReplicationInfo()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.printShardingStatus.html">db.printShardingStatus()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.printSlaveReplicationInfo.html">db.printSlaveReplicationInfo()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.resetError.html">db.resetError()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.runCommand.html">db.runCommand()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.serverBuildInfo.html">db.serverBuildInfo()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.serverCmdLineOpts.html">db.serverCmdLineOpts()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.serverStatus.html">db.serverStatus()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.setLogLevel.html">db.setLogLevel()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.setProfilingLevel.html">db.setProfilingLevel()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.shutdownServer.html">db.shutdownServer()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.stats.html">db.stats()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.version.html">db.version()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.watch.html">db.watch()</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../method/js-plan-cache.html">Query Plan Cache Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.getPlanCache.html">db.collection.getPlanCache()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/PlanCache.clear.html">PlanCache.clear()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/PlanCache.clearPlansByQuery.html">PlanCache.clearPlansByQuery()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/PlanCache.getPlansByQuery.html">PlanCache.getPlansByQuery()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/PlanCache.help.html">PlanCache.help()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/PlanCache.listQueryShapes.html">PlanCache.listQueryShapes()</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../method/js-bulk.html">Bulk Operation Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.initializeOrderedBulkOp.html">db.collection.initializeOrderedBulkOp()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.collection.initializeUnorderedBulkOp.html">db.collection.initializeUnorderedBulkOp()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Bulk.html">Bulk()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Bulk.execute.html">Bulk.execute()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Bulk.find.html">Bulk.find()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Bulk.find.arrayFilters.html">Bulk.find.arrayFilters()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Bulk.find.collation.html">Bulk.find.collation()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Bulk.find.hint.html">Bulk.find.hint()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Bulk.find.remove.html">Bulk.find.remove()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Bulk.find.removeOne.html">Bulk.find.removeOne()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Bulk.find.replaceOne.html">Bulk.find.replaceOne()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Bulk.find.updateOne.html">Bulk.find.updateOne()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Bulk.find.update.html">Bulk.find.update()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Bulk.find.upsert.html">Bulk.find.upsert()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Bulk.getOperations.html">Bulk.getOperations()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Bulk.insert.html">Bulk.insert()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Bulk.tojson.html">Bulk.tojson()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Bulk.toString.html">Bulk.toString()</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../method/js-user-management.html">User Management Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="../method/db.auth.html">db.auth()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.changeUserPassword.html">db.changeUserPassword()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.createUser.html">db.createUser()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.dropUser.html">db.dropUser()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.dropAllUsers.html">db.dropAllUsers()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.getUser.html">db.getUser()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.getUsers.html">db.getUsers()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.grantRolesToUser.html">db.grantRolesToUser()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.removeUser.html">db.removeUser()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.revokeRolesFromUser.html">db.revokeRolesFromUser()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.updateUser.html">db.updateUser()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/passwordPrompt.html">passwordPrompt()</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../method/js-role-management.html">Role Management Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="../method/db.createRole.html">db.createRole()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.dropRole.html">db.dropRole()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.dropAllRoles.html">db.dropAllRoles()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.getRole.html">db.getRole()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.getRoles.html">db.getRoles()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.grantPrivilegesToRole.html">db.grantPrivilegesToRole()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.revokePrivilegesFromRole.html">db.revokePrivilegesFromRole()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.grantRolesToRole.html">db.grantRolesToRole()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.revokeRolesFromRole.html">db.revokeRolesFromRole()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.updateRole.html">db.updateRole()</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../method/js-replication.html">Replication Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="../method/rs.add.html">rs.add()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/rs.addArb.html">rs.addArb()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/rs.conf.html">rs.conf()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/rs.freeze.html">rs.freeze()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/rs.help.html">rs.help()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/rs.initiate.html">rs.initiate()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/rs.printReplicationInfo.html">rs.printReplicationInfo()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/rs.printSlaveReplicationInfo.html">rs.printSlaveReplicationInfo()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/rs.reconfig.html">rs.reconfig()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/rs.remove.html">rs.remove()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/rs.slaveOk.html">rs.slaveOk()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/rs.status.html">rs.status()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/rs.stepDown.html">rs.stepDown()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/rs.syncFrom.html">rs.syncFrom()</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../method/js-sharding.html">Sharding Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="../method/sh.addShard.html">sh.addShard()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.addShardTag.html">sh.addShardTag()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.addShardToZone.html">sh.addShardToZone()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.addTagRange.html">sh.addTagRange()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.disableBalancing.html">sh.disableBalancing()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.enableBalancing.html">sh.enableBalancing()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.disableAutoSplit.html">sh.disableAutoSplit</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.enableAutoSplit.html">sh.enableAutoSplit</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.enableSharding.html">sh.enableSharding()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.getBalancerHost.html">sh.getBalancerHost()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.getBalancerState.html">sh.getBalancerState()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.removeTagRange.html">sh.removeTagRange()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.removeRangeFromZone.html">sh.removeRangeFromZone()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.help.html">sh.help()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.isBalancerRunning.html">sh.isBalancerRunning()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.moveChunk.html">sh.moveChunk()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.removeShardTag.html">sh.removeShardTag()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.removeShardFromZone.html">sh.removeShardFromZone()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.setBalancerState.html">sh.setBalancerState()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.shardCollection.html">sh.shardCollection()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.splitAt.html">sh.splitAt()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.splitFind.html">sh.splitFind()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.startBalancer.html">sh.startBalancer()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.status.html">sh.status()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.stopBalancer.html">sh.stopBalancer()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.waitForBalancer.html">sh.waitForBalancer()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.waitForBalancerOff.html">sh.waitForBalancerOff()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.waitForPingChange.html">sh.waitForPingChange()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sh.updateZoneKeyRange.html">sh.updateZoneKeyRange()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/convertShardKeyToHashed.html">convertShardKeyToHashed</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../method/js-free-monitoring.html">Free Monitoring Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="../method/db.disableFreeMonitoring.html">db.disableFreeMonitoring()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.enableFreeMonitoring.html">db.enableFreeMonitoring()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/db.getFreeMonitoringStatus.html">db.getFreeMonitoringStatus</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../method/js-constructor.html">Object Constructors and Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="../method/BulkWriteResult.html">BulkWriteResult()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Date.html">Date()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/ObjectId.html">ObjectId</a></li><li class="toctree-l4"><a class="reference internal" href="../method/ObjectId.getTimestamp.html">ObjectId.getTimestamp()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/ObjectId.toString.html">ObjectId.toString()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/ObjectId.valueOf.html">ObjectId.valueOf()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/UUID.html">UUID()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/WriteResult.html">WriteResult()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/WriteResult.hasWriteError.html">WriteResult.hasWriteError()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/WriteResult.hasWriteConcernError.html">WriteResult.hasWriteConcernError()</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../method/js-connection.html">Connection Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="../method/connect.html">connect()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Mongo.html">Mongo()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Mongo.getDB.html">Mongo.getDB()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Mongo.getReadPrefMode.html">Mongo.getReadPrefMode()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Mongo.getReadPrefTagSet.html">Mongo.getReadPrefTagSet()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Mongo.isCausalConsistency.html">Mongo.isCausalConsistency()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Mongo.setCausalConsistency.html">Mongo.setCausalConsistency()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Mongo.setReadPref.html">Mongo.setReadPref()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Mongo.setSlaveOk.html">Mongo.setSlaveOk()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Mongo.startSession.html">Mongo.startSession()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Mongo.watch.html">Mongo.watch()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/Session.html">Session</a><ul><li class="toctree-l5"><a class="reference internal" href="../method/Session.abortTransaction.html">Session.abortTransaction()</a></li><li class="toctree-l5"><a class="reference internal" href="../method/Session.commitTransaction.html">Session.commitTransaction()</a></li><li class="toctree-l5"><a class="reference internal" href="../method/Session.startTransaction.html">Session.startTransaction()</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../method/SessionOptions.html">SessionOptions</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../method/js-native.html">Native Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="../method/cat.html">cat()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/cd.html">cd()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/copyDbpath.html">copyDbpath()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/getHostName.html">getHostName()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/getMemInfo.html">getMemInfo()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/hostname.html">hostname()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/isInteractive.html">isInteractive()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/listFiles.html">listFiles()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/load.html">load()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/ls.html">ls()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/md5sumFile.html">md5sumFile()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/mkdir.html">mkdir()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/pwd.html">pwd()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/quit.html">quit()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/removeFile.html">removeFile()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/resetDbpath.html">resetDbpath()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/sleep.html">sleep()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/setVerboseShell.html">setVerboseShell()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/version.html">version()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/isWindows.html">_isWindows()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/rand.html">_rand()</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../method/js-client-side-field-level-encryption.html">Client-Side Field Level Encryption Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="../method/getKeyVault.html">getKeyVault()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/KeyVault.createKey.html">KeyVault.createKey()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/KeyVault.deleteKey.html">KeyVault.deleteKey()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/KeyVault.getKey.html">KeyVault.getKey()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/KeyVault.getKeys.html">KeyVault.getKeys()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/KeyVault.addKeyAlternateName.html">KeyVault.addKeyAlternateName()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/KeyVault.removeKeyAlternateName.html">KeyVault.removeKeyAlternateName()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/KeyVault.getKeyByAltName.html">KeyVault.getKeyByAltName()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/getClientEncryption.html">getClientEncryption()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/ClientEncryption.encrypt.html">ClientEncryption.encrypt()</a></li><li class="toctree-l4"><a class="reference internal" href="../method/ClientEncryption.decrypt.html">ClientEncryption.decrypt()</a></li></ul></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../program.html">MongoDB Package Components</a><ul><li class="toctree-l3"><a class="reference internal" href="../program/mongod.html"><code class="docutils literal"><span class="pre">mongod</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="../program/mongos.html"><code class="docutils literal"><span class="pre">mongos</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="../program/mongo.html"><code class="docutils literal"><span class="pre">mongo</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="../program/mongod.exe.html"><code class="docutils literal"><span class="pre">mongod.exe</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="../program/mongos.exe.html"><code class="docutils literal"><span class="pre">mongos.exe</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="../program/mongodump.html"><code class="docutils literal"><span class="pre">mongodump</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="../program/mongorestore.html"><code class="docutils literal"><span class="pre">mongorestore</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="../program/bsondump.html"><code class="docutils literal"><span class="pre">bsondump</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="../program/mongoimport.html"><code class="docutils literal"><span class="pre">mongoimport</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="../program/mongoexport.html"><code class="docutils literal"><span class="pre">mongoexport</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="../program/mongostat.html"><code class="docutils literal"><span class="pre">mongostat</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="../program/mongotop.html"><code class="docutils literal"><span class="pre">mongotop</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="../program/mongoreplay.html"><code class="docutils literal"><span class="pre">mongoreplay</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="../program/mongoldap.html"><code class="docutils literal"><span class="pre">mongoldap</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="../program/mongofiles.html"><code class="docutils literal"><span class="pre">mongofiles</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="../program/install_compass.html"><code class="docutils literal"><span class="pre">install_compass</span></code></a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../configuration-options.html">Configuration File Options</a><ul><li class="toctree-l3"><a class="reference internal" href="../expansion-directives.html">Externally Sourced Configuration File Values</a></li><li class="toctree-l3"><a class="reference internal" href="../../tutorial/convert-command-line-options-to-yaml.html">Convert Command-Line Options to YAML</a></li><li class="toctree-l3"><a class="reference internal" href="../configuration-file-settings-command-line-options-mapping.html">Configuration File Settings and Command-Line Options Mapping</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../parameters.html">MongoDB Server Parameters</a></li><li class="toctree-l2"><a class="reference internal" href="../limits.html">MongoDB Limits and Thresholds</a></li><li class="toctree-l2"><a class="reference internal" href="../explain-results.html">Explain Results</a></li><li class="toctree-l2"><a class="reference internal" href="../system-collections.html">System Collections</a></li><li class="toctree-l2"><a class="reference internal" href="../connection-string.html">Connection String URI Format</a></li><li class="toctree-l2"><a class="reference internal" href="../collation.html">Collation</a><ul><li class="toctree-l3"><a class="reference internal" href="../collation-locales-defaults.html">Collation Locales and Default Parameters</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../mongodb-wire-protocol.html">MongoDB Wire Protocol</a></li><li class="toctree-l2"><a class="reference internal" href="../log-messages.html">Log Messages</a></li><li class="toctree-l2"><a class="reference internal" href="../exit-codes.html">Exit Codes and Statuses</a></li><li class="toctree-l2"><a class="reference internal" href="../glossary.html">Glossary</a></li><li class="toctree-l2"><a class="reference internal" href="../default-mongodb-port.html">Default MongoDB Port</a></li><li class="toctree-l2"><a class="reference internal" href="../server-sessions.html">Server Sessions</a></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../../release-notes.html">Release Notes</a><ul><li class="toctree-l2"><a class="reference internal" href="../../release-notes/4.2.html">Release Notes for MongoDB 4.2</a><ul><li class="toctree-l3"><a class="reference internal" href="../../release-notes/4.2-compatibility.html">Compatibility Changes in MongoDB 4.2</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/4.2-upgrade-standalone.html">Upgrade a Standalone to 4.2</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/4.2-upgrade-replica-set.html">Upgrade a Replica Set to 4.2</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/4.2-upgrade-sharded-cluster.html">Upgrade a Sharded Cluster to 4.2</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/4.2-downgrade.html">Downgrade 4.2 to 4.0</a><ul><li class="toctree-l4"><a class="reference internal" href="../../release-notes/4.2-downgrade-standalone.html">Downgrade 4.2 Standalone to 4.0</a></li><li class="toctree-l4"><a class="reference internal" href="../../release-notes/4.2-downgrade-replica-set.html">Downgrade 4.2 Replica Set to 4.0</a></li><li class="toctree-l4"><a class="reference internal" href="../../release-notes/4.2-downgrade-sharded-cluster.html">Downgrade 4.2 Sharded Cluster to 4.0</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/4.2-changelog.html">4.2 Changelog</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../release-notes/4.0.html">Release Notes for MongoDB 4.0</a><ul><li class="toctree-l3"><a class="reference internal" href="../../release-notes/4.0-compatibility.html">Compatibility Changes in MongoDB 4.0</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/4.0-upgrade-standalone.html">Upgrade a Standalone to 4.0</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/4.0-upgrade-replica-set.html">Upgrade a Replica Set to 4.0</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/4.0-upgrade-sharded-cluster.html">Upgrade a Sharded Cluster to 4.0</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/4.0-downgrade-standalone.html">Downgrade 4.0 Standalone to 3.6</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/4.0-downgrade-replica-set.html">Downgrade 4.0 Replica Set to 3.6</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/4.0-downgrade-sharded-cluster.html">Downgrade 4.0 Sharded Cluster to 3.6</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/4.0-changelog.html">4.0 Changelog</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../release-notes/3.6.html">Release Notes for MongoDB 3.6</a><ul><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.6-changelog.html">3.6 Changelog</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.6-compatibility.html">Compatibility Changes in MongoDB 3.6</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.6-upgrade-standalone.html">Upgrade a Standalone to 3.6</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.6-upgrade-replica-set.html">Upgrade a Replica Set to 3.6</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.6-upgrade-sharded-cluster.html">Upgrade a Sharded Cluster to 3.6</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.6-downgrade-standalone.html">Downgrade 3.6 Standalone to 3.4</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.6-downgrade-replica-set.html">Downgrade 3.6 Replica Set to 3.4</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.6-downgrade-sharded-cluster.html">Downgrade 3.6 Sharded Cluster to 3.4</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../release-notes/3.4.html">Release Notes for MongoDB 3.4</a><ul><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.4-changelog.html">3.4 Changelog</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.4-compatibility.html">Compatibility Changes in MongoDB 3.4</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.4-upgrade-standalone.html">Upgrade a Standalone to 3.4</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.4-upgrade-replica-set.html">Upgrade a Replica Set to 3.4</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.4-upgrade-sharded-cluster.html">Upgrade a Sharded Cluster to 3.4</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.4-downgrade.html">Downgrade MongoDB 3.4 to 3.2</a><ul><li class="toctree-l4"><a class="reference internal" href="../../release-notes/3.4-downgrade-standalone.html">Downgrade 3.4 Standalone to 3.2</a></li><li class="toctree-l4"><a class="reference internal" href="../../release-notes/3.4-downgrade-replica-set.html">Downgrade 3.4 Replica Set to 3.2</a></li><li class="toctree-l4"><a class="reference internal" href="../../release-notes/3.4-downgrade-sharded-cluster.html">Downgrade 3.4 Sharded Cluster to 3.2</a></li></ul></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../release-notes/3.2.html">Release Notes for MongoDB 3.2</a><ul><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.2-changelog.html">3.2 Changelog</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.2-compatibility.html">Compatibility Changes in MongoDB 3.2</a><ul><li class="toctree-l4"><a class="reference internal" href="../../release-notes/3.2-javascript.html">JavaScript Changes in MongoDB 3.2</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.2-upgrade.html">Upgrade MongoDB to 3.2</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.2-downgrade.html">Downgrade MongoDB from 3.2</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../release-notes/3.0.html">Release Notes for MongoDB 3.0</a><ul><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.0-changelog.html">3.0 Changelog</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.0-compatibility.html">Compatibility Changes in MongoDB 3.0</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.0-upgrade.html">Upgrade MongoDB to 3.0</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.0-scram.html">Upgrade to SCRAM</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/3.0-downgrade.html">Downgrade MongoDB from 3.0</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../release-notes/2.6.html">Release Notes for MongoDB 2.6</a><ul><li class="toctree-l3"><a class="reference internal" href="../../release-notes/2.6-changelog.html">2.6 Changelog</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/2.6-compatibility.html">Compatibility Changes in MongoDB 2.6</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/2.6-upgrade.html">Upgrade MongoDB to 2.6</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/2.6-upgrade-authorization.html">Upgrade User Authorization Data to 2.6 Format</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/2.6-downgrade.html">Downgrade MongoDB from 2.6</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../release-notes/2.4.html">Release Notes for MongoDB 2.4</a><ul><li class="toctree-l3"><a class="reference internal" href="../../release-notes/2.4-changelog.html">2.4 Changelog</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/2.4-javascript.html">JavaScript Changes in MongoDB 2.4</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/2.4-upgrade.html">Upgrade MongoDB to 2.4</a></li><li class="toctree-l3"><a class="reference internal" href="../../release-notes/2.4-index-types.html">Compatibility and Index Type Changes in MongoDB 2.4</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../../release-notes/2.2.html">Release Notes for MongoDB 2.2</a></li><li class="toctree-l2"><a class="reference internal" href="../../release-notes/2.0.html">Release Notes for MongoDB 2.0</a></li><li class="toctree-l2"><a class="reference internal" href="../../release-notes/1.8.html">Release Notes for MongoDB 1.8</a></li><li class="toctree-l2"><a class="reference internal" href="../../release-notes/1.6.html">Release Notes for MongoDB 1.6</a></li><li class="toctree-l2"><a class="reference internal" href="../../release-notes/1.4.html">Release Notes for MongoDB 1.4</a></li><li class="toctree-l2"><a class="reference internal" href="../../release-notes/1.2.html">Release Notes for MongoDB 1.2.x</a></li><li class="toctree-l2"><a class="reference internal" href="../versioning.html">MongoDB Versioning</a></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../../support.html">Technical Support</a></li></ul>


    </div>
  </div>
           
         </aside>

   </div>

    <div id="main-column" class="main-column">

    <span id="showNav" class="showNav">Navigation</span>

      
        <div class="document">
            <div class="documentwrapper"><div class="bodywrapper">
              <div class="body" data-pagename="reference/command/currentOp">
                   <a class="edit-link" href="https://github.com/mongodb/docs/blob/v4.2/source/reference/command/currentOp.txt" target="_blank" title="Edit reference/command/currentOp.txt on GitHub">
    
      <span class="icon-edit"></span>
    
  </a>
                

                
  <div class="bc">
    
      <ul>
          <li><a href="../../reference.html">Reference</a><span class="bcpoint"> > </span></li>
            
          <li><a href="../command.html">Database Commands</a><span class="bcpoint"> > </span></li>
            
          <li><a href="nav-administration.html">Administration Commands</a><span class="bcpoint"> > </span></li>
            <li>currentOp</li> 
      </ul>
    
    
  </div>
                
                  <div class="section" id="currentop">
<h1>currentOp<a class="headerlink" href="#currentop" title="Permalink to this headline">¶</a></h1>
<div class="contents singlecol local topic" id="on-this-page">
<p class="topic-title first">On this page</p>
<ul class="simple">
<li><a class="reference internal" href="#definition" id="id1">Definition</a></li>
<li><a class="reference internal" href="#behavior" id="id2">Behavior</a></li>
<li><a class="reference internal" href="#access-control" id="id3">Access Control</a></li>
<li><a class="reference internal" href="#examples" id="id4">Examples</a></li>
<li><a class="reference internal" href="#output-example" id="id5">Output Example</a></li>
<li><a class="reference internal" href="#output-fields" id="id6">Output Fields</a></li>
</ul>
</div>
<div class="section" id="definition">
<h2>Definition<a class="headerlink" href="#definition" title="Permalink to this headline">¶</a></h2>
<dl class="dbcommand">
<dt id="dbcmd.currentOp">
<code class="descname">currentOp</code><a class="headerlink" href="#dbcmd.currentOp" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a <a class="reference internal" href="../glossary.html#term-document"><span class="xref std std-term">document</span></a> that contains information on in-progress
operations for the <a class="reference internal" href="../program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a> instance.</p>
<p><a class="reference internal" href="#dbcmd.currentOp" title="currentOp"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">currentOp</span></code></a> has the following form:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-javascript"><div class="highlight"><pre><span></span><span class="p">{</span> <span class="nx">currentOp</span><span class="o">:</span> <span class="mi">1</span> <span class="p">}</span>
</pre></div>
</div>
</div>
<p>The <a class="reference internal" href="../program/mongo.html#bin.mongo" title="bin.mongo"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongo</span></code></a> shell provides the <a class="reference internal" href="../method/db.currentOp.html#db.currentOp" title="db.currentOp()"><code class="xref mongodb mongodb-method docutils literal"><span class="pre">db.currentOp()</span></code></a>
wrapper for the <a class="reference internal" href="#dbcmd.currentOp" title="currentOp"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">currentOp</span></code></a> command.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p>Because <a class="reference internal" href="#dbcmd.currentOp" title="currentOp"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">currentOp</span></code></a> command and
<a class="reference internal" href="../method/db.currentOp.html#db.currentOp" title="db.currentOp()"><code class="xref mongodb mongodb-method docutils literal"><span class="pre">db.currentOp()</span></code></a> helper returns the results in a single
document, the total size of the <a class="reference internal" href="#dbcmd.currentOp" title="currentOp"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">currentOp</span></code></a> result set
is subject to the maximum 16MB BSON size limit for documents.</p>
<p>Starting in version 3.6, MongoDB provides <a class="reference internal" href="../operator/aggregation/currentOp.html#pipe._S_currentOp" title="$currentOp"><code class="xref mongodb mongodb-pipeline docutils literal"><span class="pre">$currentOp</span></code></a>
aggregation stage. The <a class="reference internal" href="../operator/aggregation/currentOp.html#pipe._S_currentOp" title="$currentOp"><code class="xref mongodb mongodb-pipeline docutils literal"><span class="pre">$currentOp</span></code></a> stage returns a
cursor over a stream of documents, each of which reports a single
operation. Each operation document is subject to the 16MB BSON
limit, but unlike the <a class="reference internal" href="#dbcmd.currentOp" title="currentOp"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">currentOp</span></code></a> command, there is no
limit on the overall size of the result set.</p>
<p class="last">For this reason, the <a class="reference internal" href="../operator/aggregation/currentOp.html#pipe._S_currentOp" title="$currentOp"><code class="xref mongodb mongodb-pipeline docutils literal"><span class="pre">$currentOp</span></code></a> aggregation stage is
preferred over the <a class="reference internal" href="#dbcmd.currentOp" title="currentOp"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">currentOp</span></code></a> command and its
<a class="reference internal" href="../program/mongo.html#bin.mongo" title="bin.mongo"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongo</span></code></a> shell helper <a class="reference internal" href="../method/db.currentOp.html#db.currentOp" title="db.currentOp()"><code class="xref mongodb mongodb-method docutils literal"><span class="pre">db.currentOp()</span></code></a>.</p>
</div>
</dd></dl>

</div>
<div class="section" id="behavior">
<h2>Behavior<a class="headerlink" href="#behavior" title="Permalink to this headline">¶</a></h2>
<p><a class="reference internal" href="#dbcmd.currentOp" title="currentOp"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">currentOp</span></code></a> must run against the <code class="docutils literal"><span class="pre">admin</span></code> database, and
it can accept several optional fields.</p>
<table border="1" class="colwidths-given docutils">
<colgroup>
<col width="15%" />
<col width="85%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Field</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><code class="docutils literal"><span class="pre">&quot;$ownOps&quot;</span></code></td>
<td><p class="first">Boolean. If set to <code class="docutils literal"><span class="pre">true</span></code>, returns information on the current user’s
operations only.</p>
<p>On <a class="reference internal" href="../program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a> instances, users are always authorized to run
<a class="reference internal" href="#dbcmd.currentOp" title="currentOp"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">currentOp</span></code></a> with <code class="docutils literal"><span class="pre">&quot;$ownOps&quot;:</span> <span class="pre">true</span></code> to view their own
operations. See <a class="reference internal" href="#currentop-access-control"><span class="std std-ref">access control</span></a>.</p>
<div class="last versionadded">
<p><span class="versionmodified">New in version 3.2.9.</span></p>
</div>
</td>
</tr>
<tr class="row-odd"><td><code class="docutils literal"><span class="pre">&quot;$all&quot;</span></code></td>
<td><p class="first">Boolean. If set to <code class="docutils literal"><span class="pre">true</span></code>, returns information on all operations,
including operations on idle connections and system operations.</p>
<p class="last"><code class="docutils literal"><span class="pre">&quot;$all&quot;:</span> <span class="pre">true</span></code> overrides any output field filters.</p>
</td>
</tr>
<tr class="row-even"><td>&lt;filter&gt;</td>
<td>Specify filter conditions on the <a class="reference internal" href="#currentop-output-fields"><span class="std std-ref">Output Fields</span></a>.
See <a class="reference internal" href="#currentop-examples"><span class="std std-ref">Examples</span></a>.</td>
</tr>
</tbody>
</table>
<p><a class="reference internal" href="#dbcmd.currentOp" title="currentOp"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">currentOp</span></code></a> and the
<a class="reference internal" href="../database-profiler.html"><span class="doc">database profiler</span></a> report the same
basic diagnostic information for all CRUD operations, including the
following:</p>
<ul class="simple">
<li><a class="reference internal" href="aggregate.html#dbcmd.aggregate" title="aggregate"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">aggregate</span></code></a></li>
<li><a class="reference internal" href="count.html#dbcmd.count" title="count"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">count</span></code></a></li>
<li><a class="reference internal" href="delete.html#dbcmd.delete" title="delete"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">delete</span></code></a></li>
<li><a class="reference internal" href="distinct.html#dbcmd.distinct" title="distinct"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">distinct</span></code></a></li>
<li><code class="docutils literal"><span class="pre">find</span></code> (<a class="reference internal" href="../mongodb-wire-protocol.html#wire-op-query"><span class="std std-ref">OP_QUERY</span></a> and
<a class="reference internal" href="find.html#dbcmd.find" title="find"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">command</span></code></a>)</li>
<li><a class="reference internal" href="findAndModify.html#dbcmd.findAndModify" title="findAndModify"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">findAndModify</span></code></a></li>
<li><code class="docutils literal"><span class="pre">getMore</span></code> (<a class="reference internal" href="../mongodb-wire-protocol.html#wire-op-query"><span class="std std-ref">OP_GET_MORE</span></a> and
<a class="reference internal" href="getMore.html#dbcmd.getMore" title="getMore"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">command</span></code></a>)</li>
<li><a class="reference internal" href="insert.html#dbcmd.insert" title="insert"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">insert</span></code></a></li>
<li><a class="reference internal" href="mapReduce.html#dbcmd.mapReduce" title="mapReduce"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">mapReduce</span></code></a></li>
<li><a class="reference internal" href="update.html#dbcmd.update" title="update"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">update</span></code></a></li>
</ul>
<p>These operations are also included in the logging of
slow queries (see <a class="reference internal" href="../configuration-options.html#operationProfiling.slowOpThresholdMs" title="operationProfiling.slowOpThresholdMs"><code class="xref mongodb mongodb-setting docutils literal"><span class="pre">slowOpThresholdMs</span></code></a> for
more information about slow query logging).</p>
</div>
<div class="section" id="access-control">
<span id="currentop-access-control"></span><h2>Access Control<a class="headerlink" href="#access-control" title="Permalink to this headline">¶</a></h2>
<p>On systems running with <a class="reference internal" href="../configuration-options.html#security.authorization" title="security.authorization"><code class="xref mongodb mongodb-setting docutils literal"><span class="pre">authorization</span></code></a>, the user
must have access that includes the <a class="reference internal" href="../privilege-actions.html#inprog" title="inprog"><code class="xref mongodb mongodb-authaction docutils literal"><span class="pre">inprog</span></code></a> privilege
action.</p>
<p>Starting in 3.2.9, users can use
<code class="docutils literal"><span class="pre">$ownOps</span></code> on <a class="reference internal" href="../program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a> instances to view their own
operations without the <a class="reference internal" href="../privilege-actions.html#inprog" title="inprog"><code class="xref mongodb mongodb-authaction docutils literal"><span class="pre">inprog</span></code></a> privilege action.</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-javascript"><div class="highlight"><pre><span></span><span class="nx">db</span><span class="p">.</span><span class="nx">adminCommand</span><span class="p">(</span> <span class="p">{</span> <span class="nx">currentOp</span><span class="o">:</span> <span class="mi">1</span><span class="p">,</span> <span class="s2">&quot;$ownOps&quot;</span><span class="o">:</span> <span class="mi">1</span> <span class="p">}</span> <span class="p">)</span>
</pre></div>
</div>
</div>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last"><a class="reference internal" href="../../tutorial/manage-users-and-roles.html#create-role-to-manage-ops"><span class="std std-ref">Create a Role to Manage Current Operations</span></a></p>
</div>
</div>
<div class="section" id="examples">
<span id="currentop-examples"></span><h2>Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h2>
<p>The following examples use the <a class="reference internal" href="#dbcmd.currentOp" title="currentOp"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">currentOp</span></code></a> command with
various query documents to filter the output.</p>
<div class="section" id="display-all-current-operations">
<h3>Display All Current Operations<a class="headerlink" href="#display-all-current-operations" title="Permalink to this headline">¶</a></h3>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-javascript"><div class="highlight"><pre><span></span><span class="nx">db</span><span class="p">.</span><span class="nx">adminCommand</span><span class="p">(</span>
   <span class="p">{</span>
     <span class="nx">currentOp</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
     <span class="s2">&quot;$all&quot;</span><span class="o">:</span> <span class="kc">true</span>
   <span class="p">}</span>
<span class="p">)</span>
</pre></div>
</div>
</div>
</div>
<div class="section" id="write-operations-waiting-for-a-lock">
<h3>Write Operations Waiting for a Lock<a class="headerlink" href="#write-operations-waiting-for-a-lock" title="Permalink to this headline">¶</a></h3>
<p>The following example returns information on all write operations that
are waiting for a lock:</p>
<div class="versionchanged">
<p><span class="versionmodified">Changed in version 3.6.</span></p>
</div>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-javascript"><div class="highlight"><pre><span></span><span class="nx">db</span><span class="p">.</span><span class="nx">adminCommand</span><span class="p">(</span>
   <span class="p">{</span>
     <span class="nx">currentOp</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
     <span class="s2">&quot;waitingForLock&quot;</span> <span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
     <span class="nx">$or</span><span class="o">:</span> <span class="p">[</span>
        <span class="p">{</span> <span class="s2">&quot;op&quot;</span> <span class="o">:</span> <span class="p">{</span> <span class="s2">&quot;$in&quot;</span> <span class="o">:</span> <span class="p">[</span> <span class="s2">&quot;insert&quot;</span><span class="p">,</span> <span class="s2">&quot;update&quot;</span><span class="p">,</span> <span class="s2">&quot;remove&quot;</span> <span class="p">]</span> <span class="p">}</span> <span class="p">},</span>
        <span class="p">{</span> <span class="s2">&quot;command.findandmodify&quot;</span><span class="o">:</span> <span class="p">{</span> <span class="nx">$exists</span><span class="o">:</span> <span class="kc">true</span> <span class="p">}</span> <span class="p">}</span>
    <span class="p">]</span>
   <span class="p">}</span>
<span class="p">)</span>
</pre></div>
</div>
</div>
</div>
<div class="section" id="active-operations-with-no-yields">
<h3>Active Operations with no Yields<a class="headerlink" href="#active-operations-with-no-yields" title="Permalink to this headline">¶</a></h3>
<p>The following example returns information on all active running
operations that have never yielded:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-javascript"><div class="highlight"><pre><span></span><span class="nx">db</span><span class="p">.</span><span class="nx">adminCommand</span><span class="p">(</span>
   <span class="p">{</span>
     <span class="nx">currentOp</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
     <span class="s2">&quot;active&quot;</span> <span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
     <span class="s2">&quot;numYields&quot;</span> <span class="o">:</span> <span class="mi">0</span><span class="p">,</span>
     <span class="s2">&quot;waitingForLock&quot;</span> <span class="o">:</span> <span class="kc">false</span>
   <span class="p">}</span>
<span class="p">)</span>
</pre></div>
</div>
</div>
</div>
<div class="section" id="active-operations-on-a-specific-database">
<h3>Active Operations on a Specific Database<a class="headerlink" href="#active-operations-on-a-specific-database" title="Permalink to this headline">¶</a></h3>
<p>The following example returns information on all active operations for
database <code class="docutils literal"><span class="pre">db1</span></code> that have been running longer than 3 seconds:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-javascript"><div class="highlight"><pre><span></span><span class="nx">db</span><span class="p">.</span><span class="nx">adminCommand</span><span class="p">(</span>
   <span class="p">{</span>
     <span class="nx">currentOp</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
     <span class="s2">&quot;active&quot;</span> <span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
     <span class="s2">&quot;secs_running&quot;</span> <span class="o">:</span> <span class="p">{</span> <span class="s2">&quot;$gt&quot;</span> <span class="o">:</span> <span class="mi">3</span> <span class="p">},</span>
     <span class="s2">&quot;ns&quot;</span> <span class="o">:</span> <span class="sr">/^db1\./</span>
   <span class="p">}</span>
<span class="p">)</span>
</pre></div>
</div>
</div>
</div>
<div class="section" id="active-indexing-operations">
<span id="currentop-cmd-index-creation"></span><h3>Active Indexing Operations<a class="headerlink" href="#active-indexing-operations" title="Permalink to this headline">¶</a></h3>
<div class="versionchanged">
<p><span class="versionmodified">Changed in version 3.6.</span></p>
</div>
<p>The following example returns information on index creation operations:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-javascript"><div class="highlight"><pre><span></span><span class="nx">db</span><span class="p">.</span><span class="nx">adminCommand</span><span class="p">(</span>
    <span class="p">{</span>
      <span class="nx">currentOp</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
      <span class="nx">$or</span><span class="o">:</span> <span class="p">[</span>
        <span class="p">{</span> <span class="nx">op</span><span class="o">:</span> <span class="s2">&quot;command&quot;</span><span class="p">,</span> <span class="s2">&quot;command.createIndexes&quot;</span><span class="o">:</span> <span class="p">{</span> <span class="nx">$exists</span><span class="o">:</span> <span class="kc">true</span> <span class="p">}</span>  <span class="p">},</span>
        <span class="p">{</span> <span class="nx">op</span><span class="o">:</span> <span class="s2">&quot;none&quot;</span><span class="p">,</span> <span class="s2">&quot;msg&quot;</span> <span class="o">:</span> <span class="sr">/^Index Build/</span> <span class="p">}</span>
      <span class="p">]</span>
    <span class="p">}</span>
<span class="p">)</span>
</pre></div>
</div>
</div>
</div>
</div>
<div class="section" id="output-example">
<h2>Output Example<a class="headerlink" href="#output-example" title="Permalink to this headline">¶</a></h2>
<div class="tabs" >
  <ul class="tab-strip tab-strip--singleton" role="tablist">
    <li class="tab-strip__element" data-tabid="standalone" role="tab" aria-selected="true">Standalone</li>
    <li class="tab-strip__element" data-tabid="repl" role="tab" aria-selected="false">Replica Set (Primary)</li>
    <li class="tab-strip__element" data-tabid="shardedcluster" role="tab" aria-selected="false">Sharded Cluster (mongos)</li>
  </ul>
  <div class="tabs__content" role="tabpanel">
    <div class="tabpanel-standalone" data-tabid="standalone"><p>The following is a prototype of the <a class="reference internal" href="#dbcmd.currentOp" title="currentOp"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">currentOp</span></code></a>
output when run on a standalone:</p>
<div class="versionchanged">
<p><span class="versionmodified">Changed in version 4.2.</span></p>
</div>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-javascript"><div class="highlight"><pre><span></span><span class="p">{</span>
  <span class="s2">&quot;inprog&quot;</span><span class="o">:</span> <span class="p">[</span>
       <span class="p">{</span>
         <span class="s2">&quot;type&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;host&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;desc&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;connectionId&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">number</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;client&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;appName&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;clientMetadata&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nb">document</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;active&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;currentOpTime&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;effectiveUsers&quot;</span> <span class="o">:</span> <span class="p">[</span>
            <span class="p">{</span>
               <span class="s2">&quot;user&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
               <span class="s2">&quot;db&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span>
            <span class="p">}</span>
         <span class="p">],</span>
         <span class="s2">&quot;opid&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">number</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;lsid&quot;</span> <span class="o">:</span> <span class="p">{</span>
            <span class="s2">&quot;id&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">UUID</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;uid&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">BinData</span><span class="o">&gt;</span>
         <span class="p">},</span>
         <span class="s2">&quot;secs_running&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;microsecs_running&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">number</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;op&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;ns&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;command&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nb">document</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;planSummary&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;cursor&quot;</span> <span class="o">:</span> <span class="p">{</span>                              <span class="c1">// only for getMore operations</span>
            <span class="s2">&quot;cursorId&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;createdDate&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">ISODate</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;lastAccessDate&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">ISODate</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;nDocsReturned&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;nBatchesReturned&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;noCursorTimeout&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;tailable&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;awaitData&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;originatingCommand&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nb">document</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;planSummary&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;operationUsingCursorId&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span>
         <span class="p">},</span>
         <span class="s2">&quot;msg&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;progress&quot;</span> <span class="o">:</span> <span class="p">{</span>
             <span class="s2">&quot;done&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">number</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;total&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">number</span><span class="o">&gt;</span>
         <span class="p">},</span>
         <span class="s2">&quot;killPending&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;numYields&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">number</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;waitingForLatch&quot;</span> <span class="o">:</span> <span class="p">{</span>                   <span class="c1">// Starting in MongoDB 4.2.2</span>
             <span class="s2">&quot;timestamp&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">ISODate</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;captureName&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span>
         <span class="p">},</span>
         <span class="s2">&quot;locks&quot;</span> <span class="o">:</span> <span class="p">{</span>
             <span class="s2">&quot;ParallelBatchWriterMode&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;ReplicationStateTransition&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;Global&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;Database&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;Collection&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;Metadata&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;oplog&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span>
         <span class="p">},</span>
         <span class="s2">&quot;waitingForLock&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;lockStats&quot;</span> <span class="o">:</span> <span class="p">{</span>
             <span class="s2">&quot;ParallelBatchWriterMode&quot;</span> <span class="o">:</span> <span class="p">{</span>
                <span class="s2">&quot;acquireCount&quot;</span><span class="o">:</span> <span class="p">{</span>
                   <span class="s2">&quot;r&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span><span class="p">,</span>
                   <span class="s2">&quot;w&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span><span class="p">,</span>
                   <span class="s2">&quot;R&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span><span class="p">,</span>
                   <span class="s2">&quot;W&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span>
                <span class="p">},</span>
                <span class="s2">&quot;acquireWaitCount&quot;</span><span class="o">:</span> <span class="p">{</span>
                   <span class="s2">&quot;r&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span><span class="p">,</span>
                   <span class="s2">&quot;w&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span><span class="p">,</span>
                   <span class="s2">&quot;R&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span><span class="p">,</span>
                   <span class="s2">&quot;W&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span>
                <span class="p">},</span>
                <span class="s2">&quot;timeAcquiringMicros&quot;</span> <span class="o">:</span> <span class="p">{</span>
                   <span class="s2">&quot;r&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">),</span>
                   <span class="s2">&quot;w&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">),</span>
                   <span class="s2">&quot;R&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">),</span>
                   <span class="s2">&quot;W&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
                <span class="p">},</span>
                <span class="s2">&quot;deadlockCount&quot;</span> <span class="o">:</span> <span class="p">{</span>
                   <span class="s2">&quot;r&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">),</span>
                   <span class="s2">&quot;w&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">),</span>
                   <span class="s2">&quot;R&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">),</span>
                   <span class="s2">&quot;W&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
                <span class="p">}</span>
             <span class="p">},</span>
             <span class="s2">&quot;ReplicationStateTransition&quot;</span> <span class="o">:</span> <span class="p">{</span>
                <span class="p">...</span>
             <span class="p">},</span>
             <span class="s2">&quot;Global&quot;</span><span class="o">:</span> <span class="p">{</span>
                <span class="p">...</span>
             <span class="p">},</span>
             <span class="s2">&quot;Database&quot;</span> <span class="o">:</span> <span class="p">{</span>
                <span class="p">...</span>
             <span class="p">},</span>
             <span class="p">...</span>
         <span class="p">}</span>
       <span class="p">},</span>
       <span class="p">...</span>
   <span class="p">],</span>
   <span class="s2">&quot;fsyncLock&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
   <span class="s2">&quot;info&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
    <span class="s2">&quot;ok&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">num</span><span class="o">&gt;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
</div>
<div class="tabpanel-repl" data-tabid="repl"><p>The following is a prototype of the <a class="reference internal" href="#dbcmd.currentOp" title="currentOp"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">currentOp</span></code></a>
output when run on a primary of a replica set:</p>
<div class="versionchanged">
<p><span class="versionmodified">Changed in version 4.2.</span></p>
</div>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-javascript"><div class="highlight"><pre><span></span><span class="p">{</span>
  <span class="s2">&quot;inprog&quot;</span><span class="o">:</span> <span class="p">[</span>
       <span class="p">{</span>
         <span class="s2">&quot;type&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;host&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;desc&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;connectionId&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">number</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;client&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;appName&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;clientMetadata&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nb">document</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;lsid&quot;</span> <span class="o">:</span> <span class="p">{</span>
            <span class="s2">&quot;id&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">UUID</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;uid&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">BinData</span><span class="o">&gt;</span>
         <span class="p">},</span>
         <span class="s2">&quot;transaction&quot;</span> <span class="o">:</span> <span class="p">{</span>
            <span class="s2">&quot;parameters&quot;</span> <span class="o">:</span> <span class="p">{</span>
               <span class="s2">&quot;txnNumber&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
               <span class="s2">&quot;autocommit&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
               <span class="s2">&quot;readConcern&quot;</span> <span class="o">:</span> <span class="p">{</span>
                  <span class="s2">&quot;level&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span>
               <span class="p">}</span>
            <span class="p">},</span>
            <span class="s2">&quot;readTimestamp&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">Timestamp</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;startWallClockTime&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;timeOpenMicros&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;timeActiveMicros&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;timeInactiveMicros&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;expiryTime&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="p">},</span>
         <span class="s2">&quot;active&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;currentOpTime&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;effectiveUsers&quot;</span> <span class="o">:</span> <span class="p">[</span>
            <span class="p">{</span>
               <span class="s2">&quot;user&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
               <span class="s2">&quot;db&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span>
            <span class="p">}</span>
         <span class="p">],</span>
         <span class="s2">&quot;opid&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">number</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;secs_running&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;microsecs_running&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">number</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;op&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;ns&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;command&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nb">document</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;originatingCommand&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nb">document</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;planSummary&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;prepareReadConflicts&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;writeConflicts&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;cursor&quot;</span> <span class="o">:</span> <span class="p">{</span>                              <span class="c1">// only for getMore operations</span>
            <span class="s2">&quot;cursorId&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;createdDate&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">ISODate</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;lastAccessDate&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">ISODate</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;nDocsReturned&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;nBatchesReturned&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;noCursorTimeout&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;tailable&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;awaitData&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;originatingCommand&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nb">document</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;planSummary&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;operationUsingCursorId&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span>
         <span class="p">},</span>
         <span class="s2">&quot;msg&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;progress&quot;</span> <span class="o">:</span> <span class="p">{</span>
             <span class="s2">&quot;done&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">number</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;total&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">number</span><span class="o">&gt;</span>
         <span class="p">},</span>
         <span class="s2">&quot;killPending&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;numYields&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">number</span><span class="o">&gt;</span><span class="p">,</span>
          <span class="s2">&quot;waitingForLatch&quot;</span> <span class="o">:</span> <span class="p">{</span>                   <span class="c1">// Starting in MongoDB 4.2.2</span>
              <span class="s2">&quot;timestamp&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">ISODate</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
              <span class="s2">&quot;captureName&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span>
          <span class="p">},</span>
         <span class="s2">&quot;locks&quot;</span> <span class="o">:</span> <span class="p">{</span>
             <span class="s2">&quot;ParallelBatchWriterMode&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;ReplicationStateTransition&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;Global&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;Database&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;Collection&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;Metadata&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;oplog&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span>
         <span class="p">},</span>
         <span class="s2">&quot;waitingForLock&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;lockStats&quot;</span> <span class="o">:</span> <span class="p">{</span>
             <span class="s2">&quot;ParallelBatchWriterMode&quot;</span> <span class="o">:</span> <span class="p">{</span>
                <span class="s2">&quot;acquireCount&quot;</span><span class="o">:</span> <span class="p">{</span>
                   <span class="s2">&quot;r&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span><span class="p">,</span>
                   <span class="s2">&quot;w&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span><span class="p">,</span>
                   <span class="s2">&quot;R&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span><span class="p">,</span>
                   <span class="s2">&quot;W&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span>
                <span class="p">},</span>
                <span class="s2">&quot;acquireWaitCount&quot;</span><span class="o">:</span> <span class="p">{</span>
                   <span class="s2">&quot;r&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span><span class="p">,</span>
                   <span class="s2">&quot;w&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span><span class="p">,</span>
                   <span class="s2">&quot;R&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span><span class="p">,</span>
                   <span class="s2">&quot;W&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span>
                <span class="p">},</span>
                <span class="s2">&quot;timeAcquiringMicros&quot;</span> <span class="o">:</span> <span class="p">{</span>
                   <span class="s2">&quot;r&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">),</span>
                   <span class="s2">&quot;w&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">),</span>
                   <span class="s2">&quot;R&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">),</span>
                   <span class="s2">&quot;W&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
                <span class="p">},</span>
                <span class="s2">&quot;deadlockCount&quot;</span> <span class="o">:</span> <span class="p">{</span>
                   <span class="s2">&quot;r&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">),</span>
                   <span class="s2">&quot;w&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">),</span>
                   <span class="s2">&quot;R&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">),</span>
                   <span class="s2">&quot;W&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
                <span class="p">}</span>
             <span class="p">},</span>
             <span class="s2">&quot;ReplicationStateTransition&quot;</span> <span class="o">:</span> <span class="p">{</span>
                <span class="p">...</span>
             <span class="p">},</span>
             <span class="s2">&quot;Global&quot;</span> <span class="o">:</span> <span class="p">{</span>
                <span class="p">...</span>
             <span class="p">},</span>
             <span class="s2">&quot;Database&quot;</span> <span class="o">:</span> <span class="p">{</span>
                <span class="p">...</span>
             <span class="p">},</span>
             <span class="p">...</span>
         <span class="p">}</span>
       <span class="p">},</span>
       <span class="p">...</span>
   <span class="p">],</span>
   <span class="s2">&quot;fsyncLock&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
   <span class="s2">&quot;info&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
   <span class="s2">&quot;ok&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">num</span><span class="o">&gt;</span><span class="p">,</span>
   <span class="s2">&quot;operationTime&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">timestamp</span><span class="o">&gt;</span><span class="p">,</span>
   <span class="s2">&quot;$clusterTime&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nb">document</span><span class="o">&gt;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
</div>
<div class="tabpanel-shardedcluster" data-tabid="shardedcluster"><p>The following is an example of the <a class="reference internal" href="#dbcmd.currentOp" title="currentOp"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">currentOp</span></code></a>
output when run on a <a class="reference internal" href="../program/mongos.html#bin.mongos" title="bin.mongos"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongos</span></code></a> of a sharded
cluster (Fields may vary depending on the operation being
reported):</p>
<div class="versionchanged">
<p><span class="versionmodified">Changed in version 4.2.</span></p>
</div>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-javascript"><div class="highlight"><pre><span></span><span class="p">{</span>
  <span class="s2">&quot;inprog&quot;</span><span class="o">:</span> <span class="p">[</span>
       <span class="p">{</span>
         <span class="s2">&quot;shard&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;type&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;host&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;desc&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;connectionId&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">number</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;client_s&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;appName&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;clientMetadata&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nb">document</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;lsid&quot;</span> <span class="o">:</span> <span class="p">{</span>
            <span class="s2">&quot;id&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">UUID</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;uid&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">BinData</span><span class="o">&gt;</span>
         <span class="p">},</span>
         <span class="s2">&quot;transaction&quot;</span> <span class="o">:</span> <span class="p">{</span>
            <span class="s2">&quot;parameters&quot;</span> <span class="o">:</span> <span class="p">{</span>
               <span class="s2">&quot;txnNumber&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
               <span class="s2">&quot;autocommit&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
               <span class="s2">&quot;readConcern&quot;</span> <span class="o">:</span> <span class="p">{</span>
                  <span class="s2">&quot;level&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span>
               <span class="p">}</span>
            <span class="p">},</span>
            <span class="s2">&quot;readTimestamp&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">Timestamp</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;startWallClockTime&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;timeOpenMicros&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;timeActiveMicros&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;timeInactiveMicros&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;expiryTime&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="p">},</span>
         <span class="s2">&quot;active&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;currentOpTime&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;effectiveUsers&quot;</span> <span class="o">:</span> <span class="p">[</span>
            <span class="p">{</span>
               <span class="s2">&quot;user&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
               <span class="s2">&quot;db&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span>
            <span class="p">}</span>
         <span class="p">],</span>
         <span class="s2">&quot;runBy&quot;</span> <span class="o">:</span> <span class="p">[</span>
            <span class="p">{</span>
               <span class="s2">&quot;user&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
               <span class="s2">&quot;db&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span>
            <span class="p">}</span>
         <span class="p">],</span>
         <span class="s2">&quot;twoPhaseCommitCoordinator&quot;</span> <span class="o">:</span> <span class="p">{</span>           <span class="c1">// Starting in 4.2.1</span>
            <span class="s2">&quot;lsid&quot;</span> <span class="o">:</span> <span class="p">{</span>
               <span class="s2">&quot;id&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">UUID</span><span class="o">&gt;</span><span class="p">,</span>
               <span class="s2">&quot;uid&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">BinData</span><span class="o">&gt;</span>
            <span class="p">},</span>
            <span class="s2">&quot;txnNumber&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;numParticipants&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;state&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;commitStartTime&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">ISODate</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;hasRecoveredFromFailover&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;stepDurations&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nb">document</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;decision&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nb">document</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;deadline&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">ISODate</span><span class="o">&gt;</span>
         <span class="p">}</span>
         <span class="s2">&quot;opid&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;secs_running&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;microsecs_running&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">number</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;op&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;ns&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;command&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nb">document</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;planSummary&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;prepareReadConflicts&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;writeConflicts&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;cursor&quot;</span> <span class="o">:</span> <span class="p">{</span>                              <span class="c1">// only for getMore operations</span>
            <span class="s2">&quot;cursorId&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;createdDate&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">ISODate</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;lastAccessDate&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">ISODate</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;nDocsReturned&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;nBatchesReturned&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;noCursorTimeout&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;tailable&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;awaitData&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;originatingCommand&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nb">document</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;planSummary&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
            <span class="s2">&quot;operationUsingCursorId&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="p">()</span><span class="o">&gt;</span>
         <span class="p">},</span>
         <span class="s2">&quot;msg&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;progress&quot;</span> <span class="o">:</span> <span class="p">{</span>
             <span class="s2">&quot;done&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">number</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;total&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">number</span><span class="o">&gt;</span>
         <span class="p">},</span>
         <span class="s2">&quot;killPending&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;numYields&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">number</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;waitingForLatch&quot;</span> <span class="o">:</span> <span class="p">{</span>                   <span class="c1">// Starting in MongoDB 4.2.2</span>
             <span class="s2">&quot;timestamp&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">ISODate</span><span class="p">()</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;captureName&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span>
         <span class="p">},</span>
         <span class="s2">&quot;locks&quot;</span> <span class="o">:</span> <span class="p">{</span>
             <span class="s2">&quot;ParallelBatchWriterMode&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;ReplicationStateTransition&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;Global&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;Database&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;Collection&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;Metadata&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
             <span class="s2">&quot;oplog&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span>
         <span class="p">},</span>
         <span class="s2">&quot;waitingForLock&quot;</span> <span class="o">:</span> <span class="o">&lt;</span><span class="kr">boolean</span><span class="o">&gt;</span><span class="p">,</span>
         <span class="s2">&quot;lockStats&quot;</span> <span class="o">:</span> <span class="p">{</span>
             <span class="s2">&quot;ParallelBatchWriterMode&quot;</span><span class="o">:</span> <span class="p">{</span>
                <span class="s2">&quot;acquireCount&quot;</span><span class="o">:</span> <span class="p">{</span>
                   <span class="s2">&quot;r&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span><span class="p">,</span>
                   <span class="s2">&quot;w&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span><span class="p">,</span>
                   <span class="s2">&quot;R&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span><span class="p">,</span>
                   <span class="s2">&quot;W&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span>
                <span class="p">},</span>
                <span class="s2">&quot;acquireWaitCount&quot;</span><span class="o">:</span> <span class="p">{</span>
                   <span class="s2">&quot;r&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span><span class="p">,</span>
                   <span class="s2">&quot;w&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span><span class="p">,</span>
                   <span class="s2">&quot;R&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span><span class="p">,</span>
                   <span class="s2">&quot;W&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">NumberLong</span><span class="o">&gt;</span>
                <span class="p">},</span>
                <span class="s2">&quot;timeAcquiringMicros&quot;</span> <span class="o">:</span> <span class="p">{</span>
                   <span class="s2">&quot;r&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">),</span>
                   <span class="s2">&quot;w&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">),</span>
                   <span class="s2">&quot;R&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">),</span>
                   <span class="s2">&quot;W&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
                <span class="p">},</span>
                <span class="s2">&quot;deadlockCount&quot;</span> <span class="o">:</span> <span class="p">{</span>
                   <span class="s2">&quot;r&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">),</span>
                   <span class="s2">&quot;w&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">),</span>
                   <span class="s2">&quot;R&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">),</span>
                   <span class="s2">&quot;W&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
                <span class="p">}</span>
             <span class="p">},</span>
             <span class="s2">&quot;ReplicationStateTransition&quot;</span> <span class="o">:</span> <span class="p">{</span>
                <span class="p">...</span>
             <span class="p">},</span>
             <span class="s2">&quot;Global&quot;</span> <span class="o">:</span> <span class="p">{</span>
                <span class="p">...</span>
             <span class="p">},</span>
             <span class="s2">&quot;Database&quot;</span> <span class="o">:</span> <span class="p">{</span>
                <span class="p">...</span>
             <span class="p">},</span>
             <span class="p">...</span>
         <span class="p">}</span>
       <span class="p">},</span>
       <span class="p">...</span>
   <span class="p">],</span>
  <span class="s2">&quot;ok&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">num</span><span class="o">&gt;</span><span class="p">,</span>
  <span class="s2">&quot;operationTime&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">timestamp</span><span class="o">&gt;</span><span class="p">,</span>
  <span class="s2">&quot;$clusterTime&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nb">document</span><span class="o">&gt;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
    </div>
  </div>
</div></div>
<div class="section" id="output-fields">
<span id="currentop-output-fields"></span><h2>Output Fields<a class="headerlink" href="#output-fields" title="Permalink to this headline">¶</a></h2>
<dl class="data">
<dt id="currentOp.type">
<code class="descclassname">currentOp.</code><code class="descname">type</code><a class="headerlink" href="#currentOp.type" title="Permalink to this definition">¶</a></dt>
<dd><div class="versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
<p>The type of operation. Values are either:</p>
<ul class="simple">
<li><code class="docutils literal"><span class="pre">op</span></code></li>
<li><code class="docutils literal"><span class="pre">idleSession</span></code></li>
<li><code class="docutils literal"><span class="pre">idleCursor</span></code></li>
</ul>
<p>If the <a class="reference internal" href="#currentOp.type" title="currentOp.type"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">currentOp.type</span></code></a> is <code class="docutils literal"><span class="pre">op</span></code>, <a class="reference internal" href="#currentOp.op" title="currentOp.op"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">currentOp.op</span></code></a>
provides details on the specific operation.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.host">
<code class="descclassname">currentOp.</code><code class="descname">host</code><a class="headerlink" href="#currentOp.host" title="Permalink to this definition">¶</a></dt>
<dd><p>The name of the host against which the operation is run.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.desc">
<code class="descclassname">currentOp.</code><code class="descname">desc</code><a class="headerlink" href="#currentOp.desc" title="Permalink to this definition">¶</a></dt>
<dd><p>A description of the client. This string includes the
<a class="reference internal" href="#currentOp.connectionId" title="currentOp.connectionId"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">connectionId</span></code></a>.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.connectionId">
<code class="descclassname">currentOp.</code><code class="descname">connectionId</code><a class="headerlink" href="#currentOp.connectionId" title="Permalink to this definition">¶</a></dt>
<dd><p>An identifier for the connection where the operation originated.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.client">
<code class="descclassname">currentOp.</code><code class="descname">client</code><a class="headerlink" href="#currentOp.client" title="Permalink to this definition">¶</a></dt>
<dd><p>A string with information about where the operation originated.</p>
<p>For multi-document transactions, <a class="reference internal" href="#currentOp.client" title="currentOp.client"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">client</span></code></a> stores
information about the most recent client to run an operation inside
the transaction.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.appName">
<code class="descclassname">currentOp.</code><code class="descname">appName</code><a class="headerlink" href="#currentOp.appName" title="Permalink to this definition">¶</a></dt>
<dd><p>A string with information about the type of client which made the
request.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.clientMetadata">
<code class="descclassname">currentOp.</code><code class="descname">clientMetadata</code><a class="headerlink" href="#currentOp.clientMetadata" title="Permalink to this definition">¶</a></dt>
<dd><p>Additional information on the client.</p>
<p>For multi-document transactions, <a class="reference internal" href="#currentOp.client" title="currentOp.client"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">client</span></code></a> stores
information about the most recent client to run an operation inside
the transaction.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.currentOpTime">
<code class="descclassname">currentOp.</code><code class="descname">currentOpTime</code><a class="headerlink" href="#currentOp.currentOpTime" title="Permalink to this definition">¶</a></dt>
<dd><p>The start time of the operation.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 3.6.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.effectiveUsers">
<code class="descclassname">currentOp.</code><code class="descname">effectiveUsers</code><a class="headerlink" href="#currentOp.effectiveUsers" title="Permalink to this definition">¶</a></dt>
<dd><p>An array that contains a document for each user associated with the
operation. Each user document contains the <code class="docutils literal"><span class="pre">user</span></code> name and the
authentication <code class="docutils literal"><span class="pre">db</span></code>.</p>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last"><a class="reference internal" href="#currentOp.runBy" title="currentOp.runBy"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">currentOp.runBy</span></code></a></p>
</div>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.runBy">
<code class="descclassname">currentOp.</code><code class="descname">runBy</code><a class="headerlink" href="#currentOp.runBy" title="Permalink to this definition">¶</a></dt>
<dd><p>An array that contains a document for each user who is impersonating
the <a class="reference internal" href="#currentOp.effectiveUsers" title="currentOp.effectiveUsers"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">effectiveUser(s)</span></code></a> for the
operation. The runBy document contains the <code class="docutils literal"><span class="pre">user</span></code> name
and the authentication <code class="docutils literal"><span class="pre">db</span></code>. In general, the runBy user is
the <code class="docutils literal"><span class="pre">__system</span></code> user; e.g.</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-javascript"><div class="highlight"><pre><span></span><span class="s2">&quot;runBy&quot;</span> <span class="o">:</span> <span class="p">[</span>
   <span class="p">{</span>
      <span class="s2">&quot;user&quot;</span> <span class="o">:</span> <span class="s2">&quot;__system&quot;</span><span class="p">,</span>
      <span class="s2">&quot;db&quot;</span> <span class="o">:</span> <span class="s2">&quot;local&quot;</span>
   <span class="p">}</span>
<span class="p">]</span>
</pre></div>
</div>
</div>
<p><em>Only available on sharded clusters</em></p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.lsid">
<code class="descclassname">currentOp.</code><code class="descname">lsid</code><a class="headerlink" href="#currentOp.lsid" title="Permalink to this definition">¶</a></dt>
<dd><p>The session identifier.</p>
<p>Only present if the operation is associated with a
session.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 3.6.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.transaction">
<code class="descclassname">currentOp.</code><code class="descname">transaction</code><a class="headerlink" href="#currentOp.transaction" title="Permalink to this definition">¶</a></dt>
<dd><p>A document that contains <a class="reference internal" href="../../core/transactions.html"><span class="doc">multi-document transaction</span></a> information.</p>
<p>Only present if the operation is part of a multi-document transaction.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.0.</span></p>
</div>
<dl class="data">
<dt id="currentOp.transaction.parameters">
<code class="descclassname">currentOp.transaction.</code><code class="descname">parameters</code><a class="headerlink" href="#currentOp.transaction.parameters" title="Permalink to this definition">¶</a></dt>
<dd><p>A document that contains information on multi-document
transaction.</p>
<p>Only present if the operation is part of a multi-document
transaction.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.0.</span></p>
</div>
<dl class="data">
<dt id="currentOp.transaction.parameters.txnNumber">
<code class="descclassname">currentOp.transaction.parameters.</code><code class="descname">txnNumber</code><a class="headerlink" href="#currentOp.transaction.parameters.txnNumber" title="Permalink to this definition">¶</a></dt>
<dd><p>The transaction number.</p>
<p>Only present if the operation is part of a multi-document transaction.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.0.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.transaction.parameters.autocommit">
<code class="descclassname">currentOp.transaction.parameters.</code><code class="descname">autocommit</code><a class="headerlink" href="#currentOp.transaction.parameters.autocommit" title="Permalink to this definition">¶</a></dt>
<dd><p>A boolean flag that indicates if autocommit is on for the
transaction.</p>
<p>Only present if the operation is part of a multi-document transaction.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.0.2.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.transaction.parameters.readConcern">
<code class="descclassname">currentOp.transaction.parameters.</code><code class="descname">readConcern</code><a class="headerlink" href="#currentOp.transaction.parameters.readConcern" title="Permalink to this definition">¶</a></dt>
<dd><p>The <a class="reference internal" href="../../core/transactions.html#transactions-read-concern"><span class="std std-ref">read concern</span></a> for the
transaction.</p>
<p>Multi-document transactions support read concern
<a class="reference internal" href="../read-concern-snapshot.html#readconcern.&quot;snapshot&quot;" title="&quot;snapshot&quot;"><code class="xref mongodb mongodb-readconcern docutils literal"><span class="pre">&quot;snapshot&quot;</span></code></a>, <a class="reference internal" href="../read-concern-local.html#readconcern.&quot;local&quot;" title="&quot;local&quot;"><code class="xref mongodb mongodb-readconcern docutils literal"><span class="pre">&quot;local&quot;</span></code></a>, and
<a class="reference internal" href="../read-concern-majority.html#readconcern.&quot;majority&quot;" title="&quot;majority&quot;"><code class="xref mongodb mongodb-readconcern docutils literal"><span class="pre">&quot;majority&quot;</span></code></a>.</p>
<p>Only present if the operation is part of a multi-document transaction.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.0.2.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.transaction.readTimestamp">
<code class="descclassname">currentOp.transaction.</code><code class="descname">readTimestamp</code><a class="headerlink" href="#currentOp.transaction.readTimestamp" title="Permalink to this definition">¶</a></dt>
<dd><p>The timestamp of the snapshot being read by the operations in
the transaction.</p>
<p>Only present if the operation is part of a multi-document transaction.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.0.2.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.transaction.startWallClockTime">
<code class="descclassname">currentOp.transaction.</code><code class="descname">startWallClockTime</code><a class="headerlink" href="#currentOp.transaction.startWallClockTime" title="Permalink to this definition">¶</a></dt>
<dd><p>The date and time (with time zone) of the transaction start.</p>
<p>Only present if the operation is part of a multi-document transaction.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.0.2.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.transaction.timeOpenMicros">
<code class="descclassname">currentOp.transaction.</code><code class="descname">timeOpenMicros</code><a class="headerlink" href="#currentOp.transaction.timeOpenMicros" title="Permalink to this definition">¶</a></dt>
<dd><p>The duration of the transaction in microseconds.</p>
<p>The <code class="xref mongodb mongodb-data docutils literal"><span class="pre">timeActiveMicros</span></code>
value added to the
<code class="xref mongodb mongodb-data docutils literal"><span class="pre">timeInactiveMicros</span></code>
should equal the
<code class="xref mongodb mongodb-data docutils literal"><span class="pre">timeOpenMicros</span></code>.</p>
<p>Only present if the operation is part of a multi-document transaction.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.0.2.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.transaction.timeActiveMicros">
<code class="descclassname">currentOp.transaction.</code><code class="descname">timeActiveMicros</code><a class="headerlink" href="#currentOp.transaction.timeActiveMicros" title="Permalink to this definition">¶</a></dt>
<dd><p>The total amount of time that the transaction has been active;
i.e. when the transaction had operations running.</p>
<p>The
<code class="xref mongodb mongodb-data docutils literal"><span class="pre">timeActiveMicros</span></code>
value added to the
<code class="xref mongodb mongodb-data docutils literal"><span class="pre">timeInactiveMicros</span></code>
should equal the
<code class="xref mongodb mongodb-data docutils literal"><span class="pre">timeOpenMicros</span></code>.</p>
<p>Only present if the operation is part of a multi-document transaction.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.0.2.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.transaction.timeInactiveMicros">
<code class="descclassname">currentOp.transaction.</code><code class="descname">timeInactiveMicros</code><a class="headerlink" href="#currentOp.transaction.timeInactiveMicros" title="Permalink to this definition">¶</a></dt>
<dd><p>The total amount of time that the transaction has been
inactive; i.e. when the transaction had no operations running.</p>
<p>The
<code class="xref mongodb mongodb-data docutils literal"><span class="pre">timeInactiveMicros</span></code>
value added to the
<code class="xref mongodb mongodb-data docutils literal"><span class="pre">timeActiveMicros</span></code>
should equal the
<code class="xref mongodb mongodb-data docutils literal"><span class="pre">timeOpenMicros</span></code>.</p>
<p>Only present if the operation is part of a multi-document transaction.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.transaction.expiryTime">
<code class="descclassname">currentOp.transaction.</code><code class="descname">expiryTime</code><a class="headerlink" href="#currentOp.transaction.expiryTime" title="Permalink to this definition">¶</a></dt>
<dd><p>The date and time (with time zone) when the transaction will
time out and abort.</p>
<p>The <a class="reference internal" href="#currentOp.transaction.expiryTime" title="currentOp.transaction.expiryTime"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">currentOp.transaction.expiryTime</span></code></a> equals the
<a class="reference internal" href="#currentOp.transaction.startWallClockTime" title="currentOp.transaction.startWallClockTime"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">currentOp.transaction.startWallClockTime</span></code></a> + the
<a class="reference internal" href="../parameters.html#param.transactionLifetimeLimitSeconds" title="transactionLifetimeLimitSeconds"><code class="xref mongodb mongodb-parameter docutils literal"><span class="pre">transactionLifetimeLimitSeconds</span></code></a>.</p>
<p>For more information, seee <a class="reference internal" href="../../core/transactions-production-consideration.html#transaction-limit"><span class="std std-ref">Runtime Limit</span></a> for
transactions.</p>
<p>Only present if the operation is part of a multi-document transaction.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.0.2.</span></p>
</div>
</dd></dl>

</dd></dl>

</dd></dl>

<dl class="data">
<dt id="currentOp.twoPhaseCommitCoordinator">
<code class="descclassname">currentOp.</code><code class="descname">twoPhaseCommitCoordinator</code><a class="headerlink" href="#currentOp.twoPhaseCommitCoordinator" title="Permalink to this definition">¶</a></dt>
<dd><p>Information on either:</p>
<ul>
<li><p id="current-op-cmd-commit-coord-metrics">The commit coordination metrics for a <a class="reference internal" href="../../core/transactions.html"><span class="doc">transaction whose
write operations span multiple shards</span></a>.</p>
<p>Commit coordination is handled by a shard, and
<a class="reference internal" href="#dbcmd.currentOp" title="currentOp"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">currentOp</span></code></a> (run either on a <a class="reference internal" href="../program/mongos.html#bin.mongos" title="bin.mongos"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongos</span></code></a> or a
shard member) returns a shard’s coordination information only for
those transactions currently being coordinated by that shard.</p>
<p>To filter for just the commit coordination metrics:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-javascript"><div class="highlight"><pre><span></span><span class="nx">db</span><span class="p">.</span><span class="nx">currentOp</span><span class="p">(</span> <span class="p">{</span> <span class="nx">desc</span><span class="o">:</span>  <span class="s2">&quot;transaction coordinator&quot;</span> <span class="p">})</span>
</pre></div>
</div>
</div>
</li>
<li><p id="current-op-cmd-commit-coord-operation">A specific commit coordination operation (i.e.
<a class="reference internal" href="#currentOp.type" title="currentOp.type"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">currentOp.type</span></code></a> is <code class="docutils literal"><span class="pre">op</span></code> and <a class="reference internal" href="#currentOp.desc" title="currentOp.desc"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">currentOp.desc</span></code></a> is
<code class="docutils literal"><span class="pre">&quot;TransactionCoordinator&quot;</span></code>) spawned by the transaction
coordinator.</p>
</li>
</ul>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.2.1.</span></p>
</div>
<dl class="data">
<dt id="currentOp.twoPhaseCommitCoordinator.lsid">
<code class="descclassname">currentOp.twoPhaseCommitCoordinator.</code><code class="descname">lsid</code><a class="headerlink" href="#currentOp.twoPhaseCommitCoordinator.lsid" title="Permalink to this definition">¶</a></dt>
<dd><p>The session identifier for the multi-shard transaction.</p>
<p>The combination of the
<a class="reference internal" href="#currentOp.twoPhaseCommitCoordinator.lsid" title="currentOp.twoPhaseCommitCoordinator.lsid"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">lsid</span></code></a> and
<a class="reference internal" href="#currentOp.twoPhaseCommitCoordinator.txnNumber" title="currentOp.twoPhaseCommitCoordinator.txnNumber"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">txnNumber</span></code></a> identifies
the transaction.</p>
<p>Available for both the <a class="reference internal" href="#current-op-cmd-commit-coord-metrics"><span class="std std-ref">commit coordination metrics</span></a> and for specific
<a class="reference internal" href="#current-op-cmd-commit-coord-operation"><span class="std std-ref">coordination operation</span></a>.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.2.1.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.twoPhaseCommitCoordinator.txnNumber">
<code class="descclassname">currentOp.twoPhaseCommitCoordinator.</code><code class="descname">txnNumber</code><a class="headerlink" href="#currentOp.twoPhaseCommitCoordinator.txnNumber" title="Permalink to this definition">¶</a></dt>
<dd><p>The transaction number for the multi-shard transaction.</p>
<p>The combination of the
<a class="reference internal" href="#currentOp.twoPhaseCommitCoordinator.txnNumber" title="currentOp.twoPhaseCommitCoordinator.txnNumber"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">txnNumber</span></code></a> and
<a class="reference internal" href="#currentOp.twoPhaseCommitCoordinator.lsid" title="currentOp.twoPhaseCommitCoordinator.lsid"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">lsid</span></code></a> identifies the
transaction.</p>
<p>Available for both the <a class="reference internal" href="#current-op-cmd-commit-coord-metrics"><span class="std std-ref">commit coordination metrics</span></a> and for specific
<a class="reference internal" href="#current-op-cmd-commit-coord-operation"><span class="std std-ref">coordination operation</span></a>.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.2.1.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.twoPhaseCommitCoordinator.action">
<code class="descclassname">currentOp.twoPhaseCommitCoordinator.</code><code class="descname">action</code><a class="headerlink" href="#currentOp.twoPhaseCommitCoordinator.action" title="Permalink to this definition">¶</a></dt>
<dd><p>The specific commit coordination operation spawned by the
transaction coordinator:</p>
<ul class="simple">
<li><code class="docutils literal"><span class="pre">&quot;sendingPrepare&quot;</span></code></li>
<li><code class="docutils literal"><span class="pre">&quot;sendingCommit&quot;</span></code></li>
<li><code class="docutils literal"><span class="pre">&quot;sendingAbort&quot;</span></code></li>
<li><code class="docutils literal"><span class="pre">&quot;writingParticipantList&quot;</span></code></li>
<li><code class="docutils literal"><span class="pre">&quot;writingDecision&quot;</span></code></li>
<li><code class="docutils literal"><span class="pre">&quot;deletingCoordinatorDoc&quot;</span></code></li>
</ul>
<p>Only available for specific <a class="reference internal" href="#current-op-cmd-commit-coord-operation"><span class="std std-ref">coordination operation</span></a>.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.twoPhaseCommitCoordinator.startTime">
<code class="descclassname">currentOp.twoPhaseCommitCoordinator.</code><code class="descname">startTime</code><a class="headerlink" href="#currentOp.twoPhaseCommitCoordinator.startTime" title="Permalink to this definition">¶</a></dt>
<dd><p>The start date and time of the
<a class="reference internal" href="#currentOp.twoPhaseCommitCoordinator.action" title="currentOp.twoPhaseCommitCoordinator.action"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">action</span></code></a>.</p>
<p>Only available for specific <a class="reference internal" href="#current-op-cmd-commit-coord-operation"><span class="std std-ref">coordination operation</span></a>.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.2.1.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.twoPhaseCommitCoordinator.numParticipants">
<code class="descclassname">currentOp.twoPhaseCommitCoordinator.</code><code class="descname">numParticipants</code><a class="headerlink" href="#currentOp.twoPhaseCommitCoordinator.numParticipants" title="Permalink to this definition">¶</a></dt>
<dd><p>Number of shards participating in this commit.</p>
<p>Only available for the <a class="reference internal" href="#current-op-cmd-commit-coord-metrics"><span class="std std-ref">commit coordination metrics</span></a>.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.2.1.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.twoPhaseCommitCoordinator.state">
<code class="descclassname">currentOp.twoPhaseCommitCoordinator.</code><code class="descname">state</code><a class="headerlink" href="#currentOp.twoPhaseCommitCoordinator.state" title="Permalink to this definition">¶</a></dt>
<dd><p>The current step/state of the commit coordination process.</p>
<table border="1" class="colwidths-given docutils">
<colgroup>
<col width="20%" />
<col width="80%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Step/stage</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><code class="docutils literal"><span class="pre">inactive</span></code></td>
<td>Not actively part of a commit.</td>
</tr>
<tr class="row-odd"><td><code class="docutils literal"><span class="pre">writingParticipantList</span></code></td>
<td>Writing a local record of the list of shards that are part
of this multi-shard transaction.</td>
</tr>
<tr class="row-even"><td><code class="docutils literal"><span class="pre">waitingForVotes</span></code></td>
<td>Waiting for the participants to respond with vote to commit or abort.</td>
</tr>
<tr class="row-odd"><td><code class="docutils literal"><span class="pre">writingDecision</span></code></td>
<td>Writing a local record of the coordinator’s decision to commit or
abort based on votes.</td>
</tr>
<tr class="row-even"><td><code class="docutils literal"><span class="pre">waitingForDecisionAck</span></code></td>
<td>Waiting for participants to acknowledge the coordinator’s
decision to commit or abort.</td>
</tr>
<tr class="row-odd"><td><code class="docutils literal"><span class="pre">deletingCoordinatorDoc</span></code></td>
<td>Deleting the local record of commit decision.</td>
</tr>
</tbody>
</table>
<p>Only available for the <a class="reference internal" href="#current-op-cmd-commit-coord-metrics"><span class="std std-ref">commit coordination metrics</span></a>.</p>
<p>See also
<a class="reference internal" href="#currentOp.twoPhaseCommitCoordinator.stepDurations" title="currentOp.twoPhaseCommitCoordinator.stepDurations"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">currentOp.twoPhaseCommitCoordinator.stepDurations</span></code></a>.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.2.1.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.twoPhaseCommitCoordinator.commitStartTime">
<code class="descclassname">currentOp.twoPhaseCommitCoordinator.</code><code class="descname">commitStartTime</code><a class="headerlink" href="#currentOp.twoPhaseCommitCoordinator.commitStartTime" title="Permalink to this definition">¶</a></dt>
<dd><p>The date and time when the commit started.</p>
<p>Only available for the <a class="reference internal" href="#current-op-cmd-commit-coord-metrics"><span class="std std-ref">commit coordination metrics</span></a>.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.2.1.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.twoPhaseCommitCoordinator.hasRecoveredFromFailover">
<code class="descclassname">currentOp.twoPhaseCommitCoordinator.</code><code class="descname">hasRecoveredFromFailover</code><a class="headerlink" href="#currentOp.twoPhaseCommitCoordinator.hasRecoveredFromFailover" title="Permalink to this definition">¶</a></dt>
<dd><p>A boolean that indicates whether the commit coordination was
restarted due to failover on the shard that is coordinating the
commit.</p>
<p>If
<a class="reference internal" href="#currentOp.twoPhaseCommitCoordinator.hasRecoveredFromFailover" title="currentOp.twoPhaseCommitCoordinator.hasRecoveredFromFailover"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">hasRecoveredFromFailover</span></code></a>
is true, then the times specified in
<a class="reference internal" href="#currentOp.twoPhaseCommitCoordinator.stepDurations" title="currentOp.twoPhaseCommitCoordinator.stepDurations"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">currentOp.twoPhaseCommitCoordinator.stepDurations</span></code></a> may not
be accurate for all steps.</p>
<p>Only available for the <a class="reference internal" href="#current-op-cmd-commit-coord-metrics"><span class="std std-ref">commit coordination metrics</span></a>.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.2.1.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.twoPhaseCommitCoordinator.stepDurations">
<code class="descclassname">currentOp.twoPhaseCommitCoordinator.</code><code class="descname">stepDurations</code><a class="headerlink" href="#currentOp.twoPhaseCommitCoordinator.stepDurations" title="Permalink to this definition">¶</a></dt>
<dd><p>A document that contains the duration, in microseconds, of the
commit coordination <a class="reference internal" href="#currentOp.twoPhaseCommitCoordinator.state" title="currentOp.twoPhaseCommitCoordinator.state"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">steps/state</span></code></a> completed or in
progress:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-javascript"><div class="highlight"><pre><span></span><span class="s2">&quot;stepDurations&quot;</span> <span class="o">:</span> <span class="p">{</span>
   <span class="s2">&quot;writingParticipantListMicros&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">17801</span><span class="p">),</span>
   <span class="s2">&quot;totalCommitDurationMicros&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">42488463</span><span class="p">),</span>
   <span class="s2">&quot;waitingForVotesMicros&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">30378502</span><span class="p">),</span>
   <span class="s2">&quot;writingDecisionMicros&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">15015</span><span class="p">),</span>
   <span class="s2">&quot;waitingForDecisionAcksMicros&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">12077145</span><span class="p">),</span>
   <span class="s2">&quot;deletingCoordinatorDocMicros&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="mi">6009</span><span class="p">)</span>
<span class="p">},</span>
</pre></div>
</div>
</div>
<p>If
<a class="reference internal" href="#currentOp.twoPhaseCommitCoordinator.hasRecoveredFromFailover" title="currentOp.twoPhaseCommitCoordinator.hasRecoveredFromFailover"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">currentOp.twoPhaseCommitCoordinator.hasRecoveredFromFailover</span></code></a>
is true, then the times specified in
<a class="reference internal" href="#currentOp.twoPhaseCommitCoordinator.stepDurations" title="currentOp.twoPhaseCommitCoordinator.stepDurations"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">stepDurations</span></code></a> may not
be accurate for all steps.</p>
<p>For a coordinator in an <code class="docutils literal"><span class="pre">inactive</span></code> state, the document is empty:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-javascript"><div class="highlight"><pre><span></span><span class="s2">&quot;stepDurations&quot;</span> <span class="o">:</span> <span class="p">{</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<p>Only available for the <a class="reference internal" href="#current-op-cmd-commit-coord-metrics"><span class="std std-ref">commit coordination metrics</span></a>.</p>
<p>See <a class="reference internal" href="#currentOp.twoPhaseCommitCoordinator.state" title="currentOp.twoPhaseCommitCoordinator.state"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">currentOp.twoPhaseCommitCoordinator.state</span></code></a>.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.2.1.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.twoPhaseCommitCoordinator.decision">
<code class="descclassname">currentOp.twoPhaseCommitCoordinator.</code><code class="descname">decision</code><a class="headerlink" href="#currentOp.twoPhaseCommitCoordinator.decision" title="Permalink to this definition">¶</a></dt>
<dd><p>A document that contains the commit/abort decision, for example:</p>
<ul>
<li><p class="first">For a commmit decision:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-javascript"><div class="highlight"><pre><span></span><span class="s2">&quot;decision&quot;</span> <span class="o">:</span> <span class="p">{</span>
   <span class="s2">&quot;decision&quot;</span> <span class="o">:</span> <span class="s2">&quot;commit&quot;</span><span class="p">,</span>
   <span class="s2">&quot;commitTimestamp&quot;</span> <span class="o">:</span> <span class="nx">Timestamp</span><span class="p">(</span><span class="mi">1572034669</span><span class="p">,</span> <span class="mi">3</span><span class="p">)</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
</li>
<li><p class="first">For an abort decision:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-javascript"><div class="highlight"><pre><span></span><span class="s2">&quot;decision&quot;</span> <span class="o">:</span> <span class="p">{</span>
   <span class="s2">&quot;decision&quot;</span> <span class="o">:</span> <span class="s2">&quot;abort&quot;</span><span class="p">,</span>
   <span class="s2">&quot;abortStatus&quot;</span> <span class="o">:</span> <span class="p">{</span>
      <span class="s2">&quot;code&quot;</span> <span class="o">:</span> <span class="mi">282</span><span class="p">,</span>
      <span class="s2">&quot;codeName&quot;</span> <span class="o">:</span> <span class="s2">&quot;TransactionCoordinatorReachedAbortDecision&quot;</span><span class="p">,</span>
      <span class="s2">&quot;errmsg&quot;</span> <span class="o">:</span> <span class="s2">&quot;Transaction exceeded deadline&quot;</span>
   <span class="p">}</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
</li>
</ul>
<p>Only available for the <a class="reference internal" href="#current-op-cmd-commit-coord-metrics"><span class="std std-ref">commit coordination metrics</span></a>.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.2.1.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.twoPhaseCommitCoordinator.deadline">
<code class="descclassname">currentOp.twoPhaseCommitCoordinator.</code><code class="descname">deadline</code><a class="headerlink" href="#currentOp.twoPhaseCommitCoordinator.deadline" title="Permalink to this definition">¶</a></dt>
<dd><p>The date and time by which the commit must finish.</p>
<p>Only available for the <a class="reference internal" href="#current-op-cmd-commit-coord-metrics"><span class="std std-ref">commit coordination metrics</span></a>.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.2.1.</span></p>
</div>
</dd></dl>

</dd></dl>

<dl class="data">
<dt id="currentOp.opid">
<code class="descclassname">currentOp.</code><code class="descname">opid</code><a class="headerlink" href="#currentOp.opid" title="Permalink to this definition">¶</a></dt>
<dd><p>The identifier for the operation. You can pass this value to
<a class="reference internal" href="../method/db.killOp.html#db.killOp" title="db.killOp()"><code class="xref mongodb mongodb-method docutils literal"><span class="pre">db.killOp()</span></code></a> in the <a class="reference internal" href="../program/mongo.html#bin.mongo" title="bin.mongo"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongo</span></code></a> shell to terminate the
operation.</p>
<div class="admonition warning">
<p class="first admonition-title">Warning</p>
<p class="last">Terminate running operations with extreme caution. Only use
<a class="reference internal" href="../method/db.killOp.html#db.killOp" title="db.killOp()"><code class="xref mongodb mongodb-method docutils literal"><span class="pre">db.killOp()</span></code></a> to terminate operations initiated by clients
and <em>do not</em> terminate internal database operations.</p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.active">
<code class="descclassname">currentOp.</code><code class="descname">active</code><a class="headerlink" href="#currentOp.active" title="Permalink to this definition">¶</a></dt>
<dd><p>A boolean value specifying whether the operation has started. Value
is <code class="docutils literal"><span class="pre">true</span></code> if the operation has started or <code class="docutils literal"><span class="pre">false</span></code> if the
operation is idle, such as an idle connection or an internal thread
that is currently idle. An operation can be active even if the
operation has yielded to another operation. For some inactive
background threads, such as an inactive <code class="docutils literal"><span class="pre">signalProcessingThread</span></code>,
MongoDB suppresses various empty fields.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.secs_running">
<code class="descclassname">currentOp.</code><code class="descname">secs_running</code><a class="headerlink" href="#currentOp.secs_running" title="Permalink to this definition">¶</a></dt>
<dd><p>The duration of the operation in seconds. MongoDB calculates this
value by subtracting the current time from the start time of the
operation.</p>
<p>Only appears if the operation is running; i.e. if
<a class="reference internal" href="#currentOp.active" title="currentOp.active"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">active</span></code></a> is <code class="docutils literal"><span class="pre">true</span></code>.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.microsecs_running">
<code class="descclassname">currentOp.</code><code class="descname">microsecs_running</code><a class="headerlink" href="#currentOp.microsecs_running" title="Permalink to this definition">¶</a></dt>
<dd><p>The duration of the operation in microseconds. MongoDB calculates this
value by subtracting the current time from the start time of the
operation.</p>
<p>Only appears if the operation is running; i.e. if
<a class="reference internal" href="#currentOp.active" title="currentOp.active"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">active</span></code></a> is <code class="docutils literal"><span class="pre">true</span></code>.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.op">
<code class="descclassname">currentOp.</code><code class="descname">op</code><a class="headerlink" href="#currentOp.op" title="Permalink to this definition">¶</a></dt>
<dd><p>A string that identifies the specific operation type. Only present
if <a class="reference internal" href="#currentOp.type" title="currentOp.type"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">currentOp.type</span></code></a> is <code class="docutils literal"><span class="pre">op</span></code>.</p>
<p>The possible values are:</p>
<ul class="simple">
<li><code class="docutils literal"><span class="pre">&quot;none&quot;</span></code></li>
<li><code class="docutils literal"><span class="pre">&quot;update&quot;</span></code></li>
<li><code class="docutils literal"><span class="pre">&quot;insert&quot;</span></code></li>
<li><code class="docutils literal"><span class="pre">&quot;query&quot;</span></code></li>
<li><code class="docutils literal"><span class="pre">&quot;command&quot;</span></code></li>
<li><code class="docutils literal"><span class="pre">&quot;getmore&quot;</span></code></li>
<li><code class="docutils literal"><span class="pre">&quot;remove&quot;</span></code></li>
<li><code class="docutils literal"><span class="pre">&quot;killcursors&quot;</span></code></li>
</ul>
<p><code class="docutils literal"><span class="pre">&quot;query&quot;</span></code> operations include read operations.</p>
<p><code class="docutils literal"><span class="pre">&quot;command&quot;</span></code> operations include most
<a class="reference internal" href="../command.html"><span class="doc">commands</span></a> such as the
<a class="reference internal" href="createIndexes.html#dbcmd.createIndexes" title="createIndexes"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">createIndexes</span></code></a> and <code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">findandmodify</span></code>.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.ns">
<code class="descclassname">currentOp.</code><code class="descname">ns</code><a class="headerlink" href="#currentOp.ns" title="Permalink to this definition">¶</a></dt>
<dd><p>The <a class="reference internal" href="../glossary.html#term-namespace"><span class="xref std std-term">namespace</span></a> the operation targets. A namespace consists of
the <a class="reference internal" href="../glossary.html#term-database"><span class="xref std std-term">database</span></a> name and the <a class="reference internal" href="../glossary.html#term-collection"><span class="xref std std-term">collection</span></a> name
concatenated with a dot (<code class="docutils literal"><span class="pre">.</span></code>); that is,
<code class="docutils literal"><span class="pre">&quot;&lt;database&gt;.&lt;collection&gt;&quot;</span></code>.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.command">
<code class="descclassname">currentOp.</code><code class="descname">command</code><a class="headerlink" href="#currentOp.command" title="Permalink to this definition">¶</a></dt>
<dd><div class="versionchanged">
<p><span class="versionmodified">Changed in version 3.6.</span></p>
</div>
<p>A document containing the full command object associated with this
operation.</p>
<p>For example, the following output contains the command object for a
<a class="reference internal" href="find.html#dbcmd.find" title="find"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">find</span></code></a> operation on a collection named <code class="docutils literal"><span class="pre">items</span></code> in a
database named <code class="docutils literal"><span class="pre">test</span></code>:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-javascript"><div class="highlight"><pre><span></span><span class="s2">&quot;command&quot;</span> <span class="o">:</span> <span class="p">{</span>
  <span class="s2">&quot;find&quot;</span> <span class="o">:</span> <span class="s2">&quot;items&quot;</span><span class="p">,</span>
  <span class="s2">&quot;filter&quot;</span> <span class="o">:</span> <span class="p">{</span>
    <span class="s2">&quot;sku&quot;</span> <span class="o">:</span> <span class="mi">1403978</span>
  <span class="p">},</span>
  <span class="p">...</span>
  <span class="s2">&quot;$db&quot;</span> <span class="o">:</span> <span class="s2">&quot;test&quot;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<p>The following example output contains the command object for a
<a class="reference internal" href="getMore.html#dbcmd.getMore" title="getMore"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">getMore</span></code></a> operation generated by
a command with cursor id <code class="docutils literal"><span class="pre">19234103609</span></code> on a collection named
<code class="docutils literal"><span class="pre">items</span></code> in a database named <code class="docutils literal"><span class="pre">test</span></code>:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-javascript"><div class="highlight"><pre><span></span><span class="s2">&quot;command&quot;</span> <span class="o">:</span> <span class="p">{</span>
    <span class="s2">&quot;getMore&quot;</span> <span class="o">:</span> <span class="nx">NumberLong</span><span class="p">(</span><span class="s2">&quot;19234103609&quot;</span><span class="p">),</span>
    <span class="s2">&quot;collection&quot;</span> <span class="o">:</span> <span class="s2">&quot;items&quot;</span><span class="p">,</span>
    <span class="s2">&quot;batchSize&quot;</span> <span class="o">:</span> <span class="mi">10</span><span class="p">,</span>
    <span class="p">...</span>
    <span class="s2">&quot;$db&quot;</span> <span class="o">:</span> <span class="s2">&quot;test&quot;</span>
<span class="p">},</span>
</pre></div>
</div>
</div>
<p>If the command document exceeds 1 kilobyte, the
document has the following form:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-javascript"><div class="highlight"><pre><span></span><span class="s2">&quot;command&quot;</span> <span class="o">:</span> <span class="p">{</span>
  <span class="s2">&quot;$truncated&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span><span class="p">,</span>
  <span class="s2">&quot;comment&quot;</span><span class="o">:</span> <span class="o">&lt;</span><span class="nx">string</span><span class="o">&gt;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<p>The <code class="docutils literal"><span class="pre">$truncated</span></code> field contains a string summary of the document excluding
the document’s <code class="docutils literal"><span class="pre">comment</span></code> field if present. If the summary still exceeds
1 kilobyte then it is further truncated, denoted by an ellipsis
(…) at the end of the string.</p>
<p>The <code class="docutils literal"><span class="pre">comment</span></code> field is present if a comment was passed to the operation.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.planSummary">
<code class="descclassname">currentOp.</code><code class="descname">planSummary</code><a class="headerlink" href="#currentOp.planSummary" title="Permalink to this definition">¶</a></dt>
<dd><p>Specifies whether the cursor uses a collection scan
(<code class="docutils literal"><span class="pre">COLLSCAN</span></code>) or an index scan (<code class="docutils literal"><span class="pre">IXSCAN</span> <span class="pre">{</span> <span class="pre">...</span> <span class="pre">}</span></code>).</p>
<p>The <code class="docutils literal"><span class="pre">IXSCAN</span></code> also includes the specification document of the index
used.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.prepareReadConflicts">
<code class="descclassname">currentOp.</code><code class="descname">prepareReadConflicts</code><a class="headerlink" href="#currentOp.prepareReadConflicts" title="Permalink to this definition">¶</a></dt>
<dd><p>The number of times the current operation had to wait for a
prepared transaction with a write to commit or abort.</p>
<p>While waiting, the current operation continues to hold any necessary
locks and storage engine resources.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.writeConflicts">
<code class="descclassname">currentOp.</code><code class="descname">writeConflicts</code><a class="headerlink" href="#currentOp.writeConflicts" title="Permalink to this definition">¶</a></dt>
<dd><p>The number of times the current operation conflicted with
another write operation on the same document.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.cursor">
<code class="descclassname">currentOp.</code><code class="descname">cursor</code><a class="headerlink" href="#currentOp.cursor" title="Permalink to this definition">¶</a></dt>
<dd><div class="versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
<p>A document that contains the cursor information for <code class="docutils literal"><span class="pre">getmore</span></code>
operations; i.e. where <a class="reference internal" href="#currentOp.op" title="currentOp.op"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">op</span></code></a> is <code class="docutils literal"><span class="pre">getmore</span></code>.</p>
<p>If reporting on a <code class="docutils literal"><span class="pre">getmore</span></code> operation before the <code class="docutils literal"><span class="pre">getmore</span></code> has
accessed its cursor information, the <a class="reference internal" href="#currentOp.cursor" title="currentOp.cursor"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">cursor</span></code></a> field
is not available.</p>
<dl class="data">
<dt id="currentOp.cursor.cursorId">
<code class="descclassname">currentOp.cursor.</code><code class="descname">cursorId</code><a class="headerlink" href="#currentOp.cursor.cursorId" title="Permalink to this definition">¶</a></dt>
<dd><div class="versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
<p>The id of the cursor.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.cursor.createdDate">
<code class="descclassname">currentOp.cursor.</code><code class="descname">createdDate</code><a class="headerlink" href="#currentOp.cursor.createdDate" title="Permalink to this definition">¶</a></dt>
<dd><div class="versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
<p>The date and time when the cursor was created.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.cursor.lastAccessDate">
<code class="descclassname">currentOp.cursor.</code><code class="descname">lastAccessDate</code><a class="headerlink" href="#currentOp.cursor.lastAccessDate" title="Permalink to this definition">¶</a></dt>
<dd><div class="versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
<p>The date and time when the cursor was last used.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.cursor.nDocsReturned">
<code class="descclassname">currentOp.cursor.</code><code class="descname">nDocsReturned</code><a class="headerlink" href="#currentOp.cursor.nDocsReturned" title="Permalink to this definition">¶</a></dt>
<dd><div class="versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
<p>The cumulative number of documents returned by the cursor.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.cursor.nBatchesReturned">
<code class="descclassname">currentOp.cursor.</code><code class="descname">nBatchesReturned</code><a class="headerlink" href="#currentOp.cursor.nBatchesReturned" title="Permalink to this definition">¶</a></dt>
<dd><div class="versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
<p>The curmulative number of batches returned by the cursor.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.cursor.noCursorTimeout">
<code class="descclassname">currentOp.cursor.</code><code class="descname">noCursorTimeout</code><a class="headerlink" href="#currentOp.cursor.noCursorTimeout" title="Permalink to this definition">¶</a></dt>
<dd><div class="versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
<p>The flag that indicates that the cursor will not timeout when idle;
i.e. if the cursor has the <code class="docutils literal"><span class="pre">noTimeout</span></code> option set.</p>
<ul class="simple">
<li>If true, the cursor does not time out when idle.</li>
<li>If false, the cursor will time out when idle.</li>
</ul>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last"><a class="reference internal" href="../method/cursor.addOption.html#cursor.addOption" title="cursor.addOption()"><code class="xref mongodb mongodb-method docutils literal"><span class="pre">cursor.addOption()</span></code></a></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.cursor.tailable">
<code class="descclassname">currentOp.cursor.</code><code class="descname">tailable</code><a class="headerlink" href="#currentOp.cursor.tailable" title="Permalink to this definition">¶</a></dt>
<dd><div class="versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
<p>The flag that indicates if the cursor is a <a class="reference internal" href="../../core/tailable-cursors.html"><span class="doc">tailable cursor</span></a> for a capped collection. Tailable cursors
remain open after the client exhausts the results in the initial
cursor.</p>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<ul class="last simple">
<li><a class="reference internal" href="find.html#dbcmd.find" title="find"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">find</span></code></a></li>
<li><a class="reference internal" href="../method/cursor.tailable.html#cursor.tailable" title="cursor.tailable()"><code class="xref mongodb mongodb-method docutils literal"><span class="pre">cursor.tailable()</span></code></a></li>
<li><a class="reference internal" href="../method/cursor.addOption.html#cursor.addOption" title="cursor.addOption()"><code class="xref mongodb mongodb-method docutils literal"><span class="pre">cursor.addOption()</span></code></a></li>
</ul>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.cursor.awaitData">
<code class="descclassname">currentOp.cursor.</code><code class="descname">awaitData</code><a class="headerlink" href="#currentOp.cursor.awaitData" title="Permalink to this definition">¶</a></dt>
<dd><div class="versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
<p>The flag that indicates whether the <a class="reference internal" href="../../core/tailable-cursors.html"><span class="doc">tailable cursor</span></a> should temporarily block a
<a class="reference internal" href="getMore.html#dbcmd.getMore" title="getMore"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">getMore</span></code></a> command on the cursor while waiting for new
data rather than returning no data.</p>
<p>For non-tailable cursors, the value is always false.</p>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<ul class="last simple">
<li><a class="reference internal" href="find.html#dbcmd.find" title="find"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">find</span></code></a></li>
<li><a class="reference internal" href="../method/cursor.tailable.html#cursor.tailable" title="cursor.tailable()"><code class="xref mongodb mongodb-method docutils literal"><span class="pre">cursor.tailable()</span></code></a></li>
<li><a class="reference internal" href="../method/cursor.addOption.html#cursor.addOption" title="cursor.addOption()"><code class="xref mongodb mongodb-method docutils literal"><span class="pre">cursor.addOption()</span></code></a></li>
</ul>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.cursor.originatingCommand">
<code class="descclassname">currentOp.cursor.</code><code class="descname">originatingCommand</code><a class="headerlink" href="#currentOp.cursor.originatingCommand" title="Permalink to this definition">¶</a></dt>
<dd><div class="versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
<p>The <code class="docutils literal"><span class="pre">originatingCommand</span></code> field contains the full command object
(e.g. <code class="docutils literal"><span class="pre">find</span></code> or <code class="docutils literal"><span class="pre">aggregate</span></code>) which originally created the
cursor.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">Starting in version 4.2, MongoDB now returns
<code class="docutils literal"><span class="pre">originatingCommand</span></code> field as a nested field in the new
<code class="docutils literal"><span class="pre">cursor</span></code> field. In previous versions, the
<code class="docutils literal"><span class="pre">originatingCommand</span></code> was a top-level field for the associated
<code class="docutils literal"><span class="pre">&quot;getmore&quot;</span></code> document.</p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.cursor.planSummary">
<code class="descclassname">currentOp.cursor.</code><code class="descname">planSummary</code><a class="headerlink" href="#currentOp.cursor.planSummary" title="Permalink to this definition">¶</a></dt>
<dd><div class="versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
<p>Specifies whether the cursor uses a collection scan
(<code class="docutils literal"><span class="pre">COLLSCAN</span></code>) or an index scan (<code class="docutils literal"><span class="pre">IXSCAN</span> <span class="pre">{</span> <span class="pre">...</span> <span class="pre">}</span></code>).</p>
<p>The <code class="docutils literal"><span class="pre">IXSCAN</span></code> also includes the specification document of the index
used.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.cursor.operationUsingCursorId">
<code class="descclassname">currentOp.cursor.</code><code class="descname">operationUsingCursorId</code><a class="headerlink" href="#currentOp.cursor.operationUsingCursorId" title="Permalink to this definition">¶</a></dt>
<dd><div class="versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
<p>The <code class="docutils literal"><span class="pre">opid</span></code> of the operation using the cursor.</p>
<p>Only present if the cursor is not idle.</p>
</dd></dl>

</dd></dl>

<dl class="data">
<dt id="iddup.currentOp.client">
<code class="descclassname">currentOp.</code><code class="descname">client</code><a class="headerlink" href="#iddup.currentOp.client" title="Permalink to this definition">¶</a></dt>
<dd><p>The IP address (or hostname) and the ephemeral port of the client
connection where the operation originates. If your <code class="docutils literal"><span class="pre">inprog</span></code>
array has operations from many different clients, use this string
to relate operations to clients.</p>
</dd></dl>

<dl class="data">
<dt id="iddup.currentOp.appName">
<code class="descclassname">currentOp.</code><code class="descname">appName</code><a class="headerlink" href="#iddup.currentOp.appName" title="Permalink to this definition">¶</a></dt>
<dd><div class="versionadded">
<p><span class="versionmodified">New in version 3.4.</span></p>
</div>
<p>The identifier of the client application which ran the operation. Use
the <a class="reference internal" href="../connection-string.html#urioption.appName" title="appName"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">appName</span></code></a> connection string option to set a custom value
for the <code class="docutils literal"><span class="pre">appName</span></code> field.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.waitingForLatch">
<code class="descclassname">currentOp.</code><code class="descname">waitingForLatch</code><a class="headerlink" href="#currentOp.waitingForLatch" title="Permalink to this definition">¶</a></dt>
<dd><p>The <a class="reference internal" href="#currentOp.waitingForLatch" title="currentOp.waitingForLatch"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">waitingForLatch</span></code></a> document is only
available if the operation is waiting to acquire an internal locking
primitive (a.k.a. a latch) or for an internal condition to be met.</p>
<p>For example,</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-javascript"><div class="highlight"><pre><span></span><span class="s2">&quot;waitingForLatch&quot;</span> <span class="o">:</span> <span class="p">{</span>
   <span class="s2">&quot;timestamp&quot;</span> <span class="o">:</span> <span class="nx">ISODate</span><span class="p">(</span><span class="s2">&quot;2020-03-19T23:25:58.412Z&quot;</span><span class="p">),</span>
   <span class="s2">&quot;captureName&quot;</span> <span class="o">:</span> <span class="s2">&quot;FutureResolution&quot;</span><span class="p">,</span>
<span class="p">},</span>
</pre></div>
</div>
</div>
<table border="1" class="colwidths-given docutils">
<colgroup>
<col width="20%" />
<col width="80%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Output Field</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>timestamp</td>
<td>The date and time at which the operation started to wait.</td>
</tr>
<tr class="row-odd"><td>captureName</td>
<td>The internal name of the section where the operation is currently blocked.</td>
</tr>
</tbody>
</table>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.2.2.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.locks">
<code class="descclassname">currentOp.</code><code class="descname">locks</code><a class="headerlink" href="#currentOp.locks" title="Permalink to this definition">¶</a></dt>
<dd><p>The <a class="reference internal" href="#currentOp.locks" title="currentOp.locks"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">locks</span></code></a> document reports the type and mode of
locks the operation currently holds. The possible lock types are as
follows:</p>
<table border="1" class="colwidths-given docutils">
<colgroup>
<col width="20%" />
<col width="80%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Lock Type</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><code class="docutils literal"><span class="pre">ParallelBatchWriterMode</span></code></td>
<td><p class="first">Represents a lock for parallel batch writer mode.</p>
<p>In earlier versions, PBWM information was reported as part of
the <code class="docutils literal"><span class="pre">Global</span></code> lock information.</p>
<div class="last versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
</td>
</tr>
<tr class="row-odd"><td><code class="docutils literal"><span class="pre">ReplicationStateTransition</span></code></td>
<td><p class="first">Represents lock taken for <a class="reference internal" href="../replica-states.html"><span class="doc">replica set member state</span></a> transitions.</p>
<div class="last versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
</td>
</tr>
<tr class="row-even"><td><code class="docutils literal"><span class="pre">Global</span></code></td>
<td>Represents global lock.</td>
</tr>
<tr class="row-odd"><td><code class="docutils literal"><span class="pre">Database</span></code></td>
<td>Represents database lock.</td>
</tr>
<tr class="row-even"><td><code class="docutils literal"><span class="pre">Collection</span></code></td>
<td>Represents collection lock.</td>
</tr>
<tr class="row-odd"><td><code class="docutils literal"><span class="pre">Mutex</span></code></td>
<td>Represents mutex.</td>
</tr>
<tr class="row-even"><td><code class="docutils literal"><span class="pre">Metadata</span></code></td>
<td>Represents metadata lock.</td>
</tr>
<tr class="row-odd"><td><code class="docutils literal"><span class="pre">oplog</span></code></td>
<td>Represents lock on the <a class="reference internal" href="../glossary.html#term-oplog"><span class="xref std std-term">oplog</span></a>.</td>
</tr>
</tbody>
</table>
<p>The possible modes are as follows:</p>
<table border="1" class="colwidths-given docutils">
<colgroup>
<col width="20%" />
<col width="80%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Lock Mode</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><code class="docutils literal"><span class="pre">R</span></code></td>
<td>Represents Shared (S) lock.</td>
</tr>
<tr class="row-odd"><td><code class="docutils literal"><span class="pre">W</span></code></td>
<td>Represents Exclusive (X) lock.</td>
</tr>
<tr class="row-even"><td><code class="docutils literal"><span class="pre">r</span></code></td>
<td>Represents Intent Shared (IS) lock.</td>
</tr>
<tr class="row-odd"><td><code class="docutils literal"><span class="pre">w</span></code></td>
<td>Represents Intent Exclusive (IX) lock.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="data">
<dt id="currentOp.waitingForLock">
<code class="descclassname">currentOp.</code><code class="descname">waitingForLock</code><a class="headerlink" href="#currentOp.waitingForLock" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a boolean value. <a class="reference internal" href="#currentOp.waitingForLock" title="currentOp.waitingForLock"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">waitingForLock</span></code></a> is <code class="docutils literal"><span class="pre">true</span></code> if the
operation is waiting for a lock and <code class="docutils literal"><span class="pre">false</span></code> if the operation has
the required lock.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.msg">
<code class="descclassname">currentOp.</code><code class="descname">msg</code><a class="headerlink" href="#currentOp.msg" title="Permalink to this definition">¶</a></dt>
<dd><p>The <a class="reference internal" href="#currentOp.msg" title="currentOp.msg"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">msg</span></code></a> provides a message that describes the status and
progress of the operation. In the case of indexing or mapReduce
operations, the field reports the completion percentage.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.progress">
<code class="descclassname">currentOp.</code><code class="descname">progress</code><a class="headerlink" href="#currentOp.progress" title="Permalink to this definition">¶</a></dt>
<dd><p>Reports on the progress of mapReduce or indexing operations. The
<a class="reference internal" href="#currentOp.progress" title="currentOp.progress"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">progress</span></code></a> fields corresponds to the completion percentage in
the <a class="reference internal" href="#currentOp.msg" title="currentOp.msg"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">msg</span></code></a> field. The <a class="reference internal" href="#currentOp.progress" title="currentOp.progress"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">progress</span></code></a> specifies the following
information:</p>
<dl class="data">
<dt id="currentOp.progress.done">
<code class="descclassname">currentOp.progress.</code><code class="descname">done</code><a class="headerlink" href="#currentOp.progress.done" title="Permalink to this definition">¶</a></dt>
<dd><p>Reports the number completed.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.progress.total">
<code class="descclassname">currentOp.progress.</code><code class="descname">total</code><a class="headerlink" href="#currentOp.progress.total" title="Permalink to this definition">¶</a></dt>
<dd><p>Reports the total number.</p>
</dd></dl>

</dd></dl>

<dl class="data">
<dt id="currentOp.killPending">
<code class="descclassname">currentOp.</code><code class="descname">killPending</code><a class="headerlink" href="#currentOp.killPending" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns <code class="docutils literal"><span class="pre">true</span></code> if the operation is currently flagged for
termination.  When the operation encounters its next safe termination point, the
operation will terminate.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.numYields">
<code class="descclassname">currentOp.</code><code class="descname">numYields</code><a class="headerlink" href="#currentOp.numYields" title="Permalink to this definition">¶</a></dt>
<dd><p><a class="reference internal" href="#currentOp.numYields" title="currentOp.numYields"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">numYields</span></code></a> is a counter that reports the number of times the
operation has yielded to allow other operations to complete.</p>
<p>Typically, operations yield when they need access to data that
MongoDB has not yet fully read into memory. This allows
other operations that have data in memory to complete quickly
while MongoDB reads in data for the yielding operation.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.fsyncLock">
<code class="descclassname">currentOp.</code><code class="descname">fsyncLock</code><a class="headerlink" href="#currentOp.fsyncLock" title="Permalink to this definition">¶</a></dt>
<dd><p>Specifies if database is currently locked for <a class="reference internal" href="../method/db.fsyncLock.html#db.fsyncLock" title="db.fsyncLock()"><code class="xref mongodb mongodb-method docutils literal"><span class="pre">fsync</span>
<span class="pre">write/snapshot</span></code></a>.</p>
<p>Only appears if locked; i.e. if <a class="reference internal" href="#currentOp.fsyncLock" title="currentOp.fsyncLock"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">fsyncLock</span></code></a> is
<code class="docutils literal"><span class="pre">true</span></code>.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.info">
<code class="descclassname">currentOp.</code><code class="descname">info</code><a class="headerlink" href="#currentOp.info" title="Permalink to this definition">¶</a></dt>
<dd><p>Information regarding how to unlock database from
<a class="reference internal" href="../method/db.fsyncLock.html#db.fsyncLock" title="db.fsyncLock()"><code class="xref mongodb mongodb-method docutils literal"><span class="pre">db.fsyncLock()</span></code></a>. Only appears if
<a class="reference internal" href="#currentOp.fsyncLock" title="currentOp.fsyncLock"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">fsyncLock</span></code></a> is <code class="docutils literal"><span class="pre">true</span></code>.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.lockStats">
<code class="descclassname">currentOp.</code><code class="descname">lockStats</code><a class="headerlink" href="#currentOp.lockStats" title="Permalink to this definition">¶</a></dt>
<dd><p>For each lock type and mode (see <a class="reference internal" href="#currentOp.locks" title="currentOp.locks"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">currentOp.locks</span></code></a> for
descriptions of lock types and modes), returns the following
information:</p>
<dl class="data">
<dt id="currentOp.lockStats.acquireCount">
<code class="descclassname">currentOp.lockStats.</code><code class="descname">acquireCount</code><a class="headerlink" href="#currentOp.lockStats.acquireCount" title="Permalink to this definition">¶</a></dt>
<dd><p>Number of times the operation acquired the lock in the specified
mode.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.lockStats.acquireWaitCount">
<code class="descclassname">currentOp.lockStats.</code><code class="descname">acquireWaitCount</code><a class="headerlink" href="#currentOp.lockStats.acquireWaitCount" title="Permalink to this definition">¶</a></dt>
<dd><p>Number of times the operation had to wait for the
<a class="reference internal" href="#currentOp.lockStats.acquireCount" title="currentOp.lockStats.acquireCount"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">acquireCount</span></code></a> lock acquisitions
because the locks were held in a conflicting mode.
<a class="reference internal" href="#currentOp.lockStats.acquireWaitCount" title="currentOp.lockStats.acquireWaitCount"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">acquireWaitCount</span></code></a> is less than or
equal to <a class="reference internal" href="#currentOp.lockStats.acquireCount" title="currentOp.lockStats.acquireCount"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">acquireCount</span></code></a>.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.lockStats.timeAcquiringMicros">
<code class="descclassname">currentOp.lockStats.</code><code class="descname">timeAcquiringMicros</code><a class="headerlink" href="#currentOp.lockStats.timeAcquiringMicros" title="Permalink to this definition">¶</a></dt>
<dd><p>Cumulative time in microseconds that the operation had to wait to
acquire the locks.</p>
<p><a class="reference internal" href="#currentOp.lockStats.timeAcquiringMicros" title="currentOp.lockStats.timeAcquiringMicros"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">timeAcquiringMicros</span></code></a> divided by
<a class="reference internal" href="#currentOp.lockStats.acquireWaitCount" title="currentOp.lockStats.acquireWaitCount"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">acquireWaitCount</span></code></a> gives an
approximate average wait time for the particular lock mode.</p>
</dd></dl>

<dl class="data">
<dt id="currentOp.lockStats.deadlockCount">
<code class="descclassname">currentOp.lockStats.</code><code class="descname">deadlockCount</code><a class="headerlink" href="#currentOp.lockStats.deadlockCount" title="Permalink to this definition">¶</a></dt>
<dd><p>Number of times the operation encountered deadlocks while waiting
for lock acquisitions.</p>
</dd></dl>

</dd></dl>

<dl class="data">
<dt id="currentOp.waitingForFlowControl">
<code class="descclassname">currentOp.</code><code class="descname">waitingForFlowControl</code><a class="headerlink" href="#currentOp.waitingForFlowControl" title="Permalink to this definition">¶</a></dt>
<dd><p>A boolean that indicates if the operation is in the process of waiting for
<a class="reference internal" href="../../replication.html#replication-flow-control"><span class="std std-ref">flow control</span></a>.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.flowControlStats">
<code class="descclassname">currentOp.</code><code class="descname">flowControlStats</code><a class="headerlink" href="#currentOp.flowControlStats" title="Permalink to this definition">¶</a></dt>
<dd><p>The flow control statistics for this operation.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
<dl class="data">
<dt id="currentOp.flowControlStats.acquireCount">
<code class="descclassname">currentOp.flowControlStats.</code><code class="descname">acquireCount</code><a class="headerlink" href="#currentOp.flowControlStats.acquireCount" title="Permalink to this definition">¶</a></dt>
<dd><p>The number of times this operation acquired a ticket.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.flowControlStats.acquireWaitCount">
<code class="descclassname">currentOp.flowControlStats.</code><code class="descname">acquireWaitCount</code><a class="headerlink" href="#currentOp.flowControlStats.acquireWaitCount" title="Permalink to this definition">¶</a></dt>
<dd><p>The number of times this operation waited to aqcuire a ticket.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
</dd></dl>

<dl class="data">
<dt id="currentOp.flowControlStats.timeAcquiringMicros">
<code class="descclassname">currentOp.flowControlStats.</code><code class="descname">timeAcquiringMicros</code><a class="headerlink" href="#currentOp.flowControlStats.timeAcquiringMicros" title="Permalink to this definition">¶</a></dt>
<dd><p>The total time this operation has waited to acquire a ticket.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
</dd></dl>

</dd></dl>

</div>
</div>

                
    <div id="btnv">
      <span class="btn-arrow-left">&larr; &nbsp;</span>
      <a class="btn-prev-text" href="createIndexes.html" title="Previous Section: createIndexes"><span>createIndexes</span></a>
      <a class="btn-next-text" href="drop.html" title="Next Section: drop"><span>drop</span></a>
      <span class="btn-arrow-right">&nbsp;&rarr;</span>
    </div>
                  <div class="footer">
                    <div class="copyright">
                      <p>&copy; MongoDB, Inc 2008-present. MongoDB, Mongo, and the leaf logo are registered trademarks of MongoDB, Inc.</p>
                    </div>
                  </div>
              </div></div>
            </div>
        </div>
    </div>
    <div class="right-column">
      <div class="wrapper"> <div id='mongodb-docs-1'>
   <script type='text/javascript'>
      googletag.cmd.push(function() { googletag.display('mongodb-docs-1'); });
   </script>
</div>
            <div class="social">
               <a class="slack-icon" href="https://slackpass.io/mongo-db?jmp=docs" title="https://slackpass.io/mongo-db?jmp=docs"><i class="fab fa-slack" aria-hidden="true"></i></a>
               <a class="twitter-icon" href="https://twitter.com/MongoDB" title="https://twitter.com/MongoDB"><i class="fab fa-twitter-square"></i></a>
               <a class="youtube-icon" href="https://www.youtube.com/user/MongoDB" title="https://www.youtube.com/user/MongoDB"><i class="fab fa-youtube-square"></i></a>
               <a class="facebook-icon" href="https://www.facebook.com/mongodb" title="https://www.facebook.com/mongodb"><i class="fab fa-facebook-square"></i></a>
               <a class="stack-overflow-icon" href="https://stackoverflow.com/tags/mongodb/info" title="https://stackoverflow.com/tags/mongodb/info"><i class="fab fa-stack-overflow" aria-hidden="true"></i></a>
            </div>
        

      </div>
    </div>
    
      <div id="rating-panel"></div>
    
    <div class="clearfix"></div>
  </div>
  

  <script type="text/javascript">
  // Bootstrap array of links that should trigger a full page reload
  window.docsExcludedNav = ['/administration', '/administration/production-checklist', '/administration/indexes-management', '/aggregation', '/applications/geospatial-indexes', '/applications/indexes', '/contributors/getting-started', '/core/2d', '/core/2dsphere', '/core/auditing', '/core/authentication', '/core/authorization', '/core/backups', '/core/read-isolation-consistency-recency', '/core/databases-and-collections', '/core/geohaystack', '/core/index-single', '/core/index-compound', '/core/index-creation', '/core/index-hashed', '/core/index-multikey', '/core/index-partial', '/core/index-sparse', '/core/index-text', '/core/index-ttl', '/core/index-unique', '/core/index-wildcard', '/core/journaling', '/core/kerberos', '/core/map-reduce', '/core/operational-segregation', '/core/query-optimization', '/core/read-preference', '/core/replica-set-architectures', '/core/replica-set-high-availability', '/core/replica-set-members', '/core/replica-set-secondary', '/core/transactions', '/geospatial-queries', '/replication', '/core/sharded-cluster-components', '/core/wiredtiger', '/core/write-operations-atomicity', '/crud', '/indexes', '/installation', '/introduction', '/mongo', '/products/bi-connector', '/reference/command', '/reference/collation', '/text-search', '/tutorial/manage-the-database-profiler', '/core/index-text', '/reference/bson-types', '/reference/configuration-options', '/reference/indexes', '/reference/method', '/reference/operator/aggregation', '/reference/operator/query', '/reference/operator/query-modifier', '/reference/operator/update', '/reference/replication', '/reference/read-concern', '/reference/security', '/reference/sharding', '/reference/write-concern', '/release-notes/2.4', '/release-notes/2.6', '/release-notes/2.8', '/release-notes/3.0', '/release-notes/3.2', '/release-notes/3.4', '/release-notes/3.6', '/release-notes/4.0', '/release-notes/4.2', '/security', '/sharding', '/changeStreams', '/core/zone-sharding', '/core/hashed-sharding', '/core/ranged-sharding', '/storage', '/tutorial/change-sharded-cluster-wiredtiger', '/tutorial/insert-documents', '/tutorial/query-documents', '/tutorial/remove-documents', '/tutorial/update-documents', '/tutorial/enable-authentication', '/tutorial/install-mongodb-on-ubuntu', '/tutorial/install-mongodb-on-windows', '/tutorial/install-mongodb-on-red-hat', '/tutorial/install-mongodb-on-debian', '/tutorial/install-mongodb-on-suse', '/tutorial/install-mongodb-on-amazon', '/tutorial/install-mongodb-enterprise-on-ubuntu', '/tutorial/install-mongodb-enterprise-on-windows', '/tutorial/install-mongodb-enterprise-on-red-hat', '/tutorial/install-mongodb-enterprise-on-debian', '/tutorial/install-mongodb-enterprise-on-suse', '/tutorial/install-mongodb-enterprise-on-amazon', '/tutorial/install-mongodb-on-os-x'];
  </script></body>
</html>